Skip to content

Commit

Permalink
Merge pull request #5414 from brave/fix_guest_window_ddg_button
Browse files Browse the repository at this point in the history
Fix DDG button state is not updated in guest window
  • Loading branch information
bsclifton authored May 18, 2020
2 parents ac31061 + 03a76ad commit 856996e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browser/ui/webui/brave_new_tab_message_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ using ntp_background_images::ViewCounterServiceFactory;
namespace {

bool IsPrivateNewTab(Profile* profile) {
return brave::IsTorProfile(profile) || profile->IsIncognitoProfile();
return brave::IsTorProfile(profile) ||
profile->IsIncognitoProfile() ||
profile->IsGuestSession();
}

base::DictionaryValue GetStatsDictionary(PrefService* prefs) {
Expand Down

0 comments on commit 856996e

Please sign in to comment.