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

Unified Diff: chrome/browser/search_engines/util.cc

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 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
« no previous file with comments | « chrome/browser/search_engines/util.h ('k') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/util.cc
diff --git a/chrome/browser/search_engines/util.cc b/chrome/browser/search_engines/util.cc
index 7b0e6111db4ceee17db3a0ec8ee1b0954caa10a0..4d0b6dc81429a46b16e53854ecda9d93038412b3 100644
--- a/chrome/browser/search_engines/util.cc
+++ b/chrome/browser/search_engines/util.cc
@@ -309,24 +309,3 @@ bool DeDupeEncodings(std::vector<std::string>* encodings) {
encodings->swap(deduped_encodings);
return encodings->size() != deduped_encodings.size();
}
-
-bool DidDefaultSearchProviderChange(
- const WDTypedResult& result,
- Profile* profile,
- scoped_ptr<TemplateURL>* backup_default_search_provider) {
- DCHECK(backup_default_search_provider);
- DCHECK(!backup_default_search_provider->get());
- DCHECK_EQ(result.GetType(), KEYWORDS_RESULT);
-
- WDKeywordsResult keyword_result = reinterpret_cast<
- const WDResult<WDKeywordsResult>*>(&result)->GetValue();
-
- if (!keyword_result.did_default_search_provider_change)
- return false;
-
- if (keyword_result.backup_valid) {
- backup_default_search_provider->reset(new TemplateURL(profile,
- keyword_result.default_search_provider_backup));
- }
- return true;
-}
« no previous file with comments | « chrome/browser/search_engines/util.h ('k') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698