Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Unified Diff: chrome/browser/ui/navigation_correction_tab_observer.cc

Issue 896943002: Use UIThreadSearchTermsData to get the Google base URL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fixes Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/navigation_correction_tab_observer.cc
diff --git a/chrome/browser/ui/navigation_correction_tab_observer.cc b/chrome/browser/ui/navigation_correction_tab_observer.cc
index d59f3e9eff0439fbc43389781a59a9fb3f75dc02..6be6a9f418e1766e88de9bed68da6943fae456cc 100644
--- a/chrome/browser/ui/navigation_correction_tab_observer.cc
+++ b/chrome/browser/ui/navigation_correction_tab_observer.cc
@@ -7,9 +7,9 @@
#include "base/prefs/pref_service.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chrome_notification_types.h"
-#include "chrome/browser/google/google_profile_helper.h"
#include "chrome/browser/google/google_url_tracker_factory.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/render_messages.h"
#include "components/google/core/browser/google_util.h"
@@ -95,13 +95,12 @@ void NavigationCorrectionTabObserver::OnEnabledChanged() {
void NavigationCorrectionTabObserver::UpdateNavigationCorrectionInfo(
RenderViewHost* rvh) {
RenderFrameHost* rfh = rvh->GetMainFrame();
+ GURL google_base_url(UIThreadSearchTermsData(profile_).GoogleBaseURLValue());
rfh->Send(new ChromeViewMsg_SetNavigationCorrectionInfo(
rfh->GetRoutingID(),
GetNavigationCorrectionURL(),
google_util::GetGoogleLocale(g_browser_process->GetApplicationLocale()),
- google_util::GetGoogleCountryCode(
- google_profile_helper::GetGoogleHomePageURL(profile_)),
+ google_util::GetGoogleCountryCode(google_base_url),
google_apis::GetAPIKey(),
- google_util::GetGoogleSearchURL(
- google_profile_helper::GetGoogleHomePageURL(profile_))));
+ google_util::GetGoogleSearchURL(google_base_url)));
}
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698