Commit 67150f15 authored by Esmael El-Moslimany's avatar Esmael El-Moslimany Committed by Commit Bot

WebUI NTP: use local-ntp if DSP is not google

Third-party search providers may or may not have third-party NTPs. When
they do not have a third-party NTP, the local-ntp is used to display
the most-visited tiles.

Bug: 1087531
Change-Id: I799e252edba04e07601fc43938688cf1d381d183
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2225625Reviewed-by: default avatarMoe Ahmadi <mahmadi@chromium.org>
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Commit-Queue: Esmael Elmoslimany <aee@chromium.org>
Auto-Submit: Esmael Elmoslimany <aee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774373}
parent b52f28d9
...@@ -178,7 +178,8 @@ struct NewTabURLDetails { ...@@ -178,7 +178,8 @@ struct NewTabURLDetails {
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
const GURL local_url(chrome::kChromeSearchLocalNtpUrl); const GURL local_url(chrome::kChromeSearchLocalNtpUrl);
#else #else
const GURL local_url(base::FeatureList::IsEnabled(ntp_features::kWebUI) const GURL local_url(base::FeatureList::IsEnabled(ntp_features::kWebUI) &&
DefaultSearchProviderIsGoogle(profile)
? chrome::kChromeUINewTabPageURL ? chrome::kChromeUINewTabPageURL
: chrome::kChromeSearchLocalNtpUrl); : chrome::kChromeSearchLocalNtpUrl);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment