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; |
-} |