From 03a76ad65a5b1818f144da148cbfcc33cafccc2a Mon Sep 17 00:00:00 2001 From: Simon Hong Date: Wed, 29 Apr 2020 15:48:36 +0900 Subject: [PATCH] Fix DDG button state is not updated in guest window So far, NTP handler of Guest window doesn't monitor kUseAlternativeSearchEngineProvider. --- browser/ui/webui/brave_new_tab_message_handler.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/ui/webui/brave_new_tab_message_handler.cc b/browser/ui/webui/brave_new_tab_message_handler.cc index f8f573fab294..99de96bf63d0 100644 --- a/browser/ui/webui/brave_new_tab_message_handler.cc +++ b/browser/ui/webui/brave_new_tab_message_handler.cc @@ -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) {