Chromium Code Reviews| 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))); |