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

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

Issue 303233006: Abstract GoogleURLTracker & google_util Profile dependencies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix and rebase Created 6 years, 7 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
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 de87c7c78e5fe03dd462832225f4a1bb80d87ca1..6ae211f7bc17caded8085c4dfa433d7af6e8c808 100644
--- a/chrome/browser/ui/navigation_correction_tab_observer.cc
+++ b/chrome/browser/ui/navigation_correction_tab_observer.cc
@@ -6,6 +6,7 @@
#include "base/prefs/pref_service.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/google/google_util.h"
#include "chrome/browser/profiles/profile.h"
@@ -91,8 +92,12 @@ void NavigationCorrectionTabObserver::UpdateNavigationCorrectionInfo(
RenderViewHost* rvh) {
RenderFrameHost* rfh = rvh->GetMainFrame();
rfh->Send(new ChromeViewMsg_SetNavigationCorrectionInfo(
- rfh->GetRoutingID(), GetNavigationCorrectionURL(),
+ rfh->GetRoutingID(),
+ GetNavigationCorrectionURL(),
google_util::GetGoogleLocale(),
- google_util::GetGoogleCountryCode(profile_), google_apis::GetAPIKey(),
- google_util::GetGoogleSearchURL(profile_)));
+ google_util::GetGoogleCountryCode(
+ google_profile_helper::GetGoogleHomePageURL(profile_)),
+ google_apis::GetAPIKey(),
+ google_util::GetGoogleSearchURL(
+ google_profile_helper::GetGoogleHomePageURL(profile_))));
}
« no previous file with comments | « chrome/browser/search_engines/template_url_service.cc ('k') | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698