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

Unified Diff: components/google/core/browser/google_url_tracker.cc

Issue 2799083003: Replace manual GoogleURLTracker update request with call to utility function. (Closed)
Patch Set: Remove unneeded #includes Created 3 years, 8 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: components/google/core/browser/google_url_tracker.cc
diff --git a/components/google/core/browser/google_url_tracker.cc b/components/google/core/browser/google_url_tracker.cc
index 0e10272068f83adfd773a3f6b82f04b12b66c7da..fdc3577716fe761cf19ab84a7663e37477ab7f85 100644
--- a/components/google/core/browser/google_url_tracker.cc
+++ b/components/google/core/browser/google_url_tracker.cc
@@ -73,14 +73,9 @@ void GoogleURLTracker::RegisterProfilePrefs(
registry->RegisterStringPref(prefs::kLastPromptedGoogleURL, std::string());
}
-void GoogleURLTracker::RequestServerCheck(bool force) {
- // If this instance already has a fetcher, SetNeedToFetch() is unnecessary,
- // and changing |already_fetched_| is wrong.
- if (!fetcher_) {
- if (force)
- already_fetched_ = false;
+void GoogleURLTracker::RequestServerCheck() {
+ if (!fetcher_)
SetNeedToFetch();
- }
}
std::unique_ptr<GoogleURLTracker::Subscription>
« no previous file with comments | « components/google/core/browser/google_url_tracker.h ('k') | components/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698