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

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

Issue 808253006: Remove the GoogleURLTracker infobar functionality entirely. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix size_t -> int conversion (since I turned off the warning disable for it) Created 6 years 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 53c4326eba69c179785c918010b0668ac030acde..d59f3e9eff0439fbc43389781a59a9fb3f75dc02 100644
--- a/chrome/browser/ui/navigation_correction_tab_observer.cc
+++ b/chrome/browser/ui/navigation_correction_tab_observer.cc
@@ -41,6 +41,10 @@ NavigationCorrectionTabObserver::NavigationCorrectionTabObserver(
GoogleURLTracker* google_url_tracker =
GoogleURLTrackerFactory::GetForProfile(profile_);
if (google_url_tracker) {
+ if (google_util::IsGoogleDomainUrl(GetNavigationCorrectionURL(),
mmenke 2015/01/05 15:35:51 It's possible that navigation corrections are disa
mmenke 2015/01/05 15:35:51 Think this needs a comment.
Peter Kasting 2015/01/05 20:15:47 They won't result in redundant checks, but moving
Peter Kasting 2015/01/05 20:15:47 What would you propose? (The code seems pretty cl
mmenke 2015/01/05 21:01:53 I'd suggest "// If navigation corrections will be
mmenke 2015/01/05 21:01:53 Something in both places seems reasonable (Or some
+ google_util::ALLOW_SUBDOMAIN,
+ google_util::ALLOW_NON_STANDARD_PORTS))
+ google_url_tracker->RequestServerCheck(false);
google_url_updated_subscription_ = google_url_tracker->RegisterCallback(
base::Bind(&NavigationCorrectionTabObserver::OnGoogleURLUpdated,
base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698