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

Unified Diff: chrome/browser/profile_resetter/profile_resetter.cc

Issue 2799083003: Replace manual GoogleURLTracker update request with call to utility function. (Closed)
Patch Set: 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: chrome/browser/profile_resetter/profile_resetter.cc
diff --git a/chrome/browser/profile_resetter/profile_resetter.cc b/chrome/browser/profile_resetter/profile_resetter.cc
index cf97bf1ca567a898eee7aa34a959a9703b75073f..647086d82c62a72e344c551a7cd707a74e12cfa3 100644
--- a/chrome/browser/profile_resetter/profile_resetter.cc
+++ b/chrome/browser/profile_resetter/profile_resetter.cc
@@ -182,18 +182,6 @@ void ProfileResetter::ResetDefaultSearchEngine() {
template_url_service_->RepairPrepopulatedSearchEngines();
- // Reset Google search URL.
- const TemplateURL* default_search_provider =
- template_url_service_->GetDefaultSearchProvider();
- if (default_search_provider &&
- default_search_provider->HasGoogleBaseURLs(
- template_url_service_->search_terms_data())) {
- GoogleURLTracker* tracker =
- GoogleURLTrackerFactory::GetForProfile(profile_);
- if (tracker)
- tracker->RequestServerCheck(true);
- }
-
MarkAsDone(DEFAULT_SEARCH_ENGINE);
} else {
template_url_service_sub_ =
« no previous file with comments | « no previous file | components/search_engines/template_url_service.cc » ('j') | components/search_engines/template_url_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698