[NextBrowser] Featured page will be shown on new tab irrespective 96/322296/1
authorNehal Kumar <nehal.kumar@samsung.com>
Mon, 7 Apr 2025 09:58:44 +0000 (15:28 +0530)
committerNehal Kumar <nehal.kumar@samsung.com>
Mon, 7 Apr 2025 09:58:44 +0000 (15:28 +0530)
of default search engine.

Change-Id: Ib6bf497c5038aa9578ad6153452235f21a510de1
Signed-off-by: Nehal Kumar <nehal.kumar@samsung.com>
chrome/browser/search/search.cc
chrome/browser/web_applications/web_app_utils.cc

index bf105924bf4d20447b11702261db7453fbefd109..74ff94c6f112a8571a3b14026b33c68b9f65ce93 100644 (file)
@@ -174,17 +174,20 @@ struct NewTabURLDetails {
 #if BUILDFLAG(IS_ANDROID)
     const GURL local_url;
 #else
-    const bool default_is_google = DefaultSearchProviderIsGoogle(profile);
-    const GURL local_url(default_is_google
+
 #if defined(SAMSUNG_NEXT_BROWSER)
-                             ? chrome::kChromeUIInternalURL
+    const GURL local_url(chrome::kChromeUIInternalURL);
+    return NewTabURLDetails(local_url, NEW_TAB_URL_VALID);
 #else
+    const bool default_is_google = DefaultSearchProviderIsGoogle(profile);
+    const GURL local_url(default_is_google
                              ? chrome::kChromeUINewTabPageURL
-#endif
                              : chrome::kChromeUINewTabPageThirdPartyURL);
     if (default_is_google) {
       return NewTabURLDetails(local_url, NEW_TAB_URL_VALID);
     }
+#endif
+
 #endif
 
     const TemplateURL* template_url =
index 2c3c613306a65881248b41628f8e6e147f57eead..37095bcd4e5a445aad6c133a057914ba42b34b7e 100644 (file)
@@ -351,7 +351,7 @@ bool AreWebAppsUserInstallable(Profile* profile) {
     return false;
 #endif
   bool result = AreWebAppsEnabled(profile) && !profile->IsGuestSession() &&
-               !profile->IsOffTheRecord();
+                !profile->IsOffTheRecord();
 
 #if defined(SAMSUNG_NEXT_BROWSER)
   if (!result)