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

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

Issue 8575018: Protector histograms for default search provider change added. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 years, 1 month 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/template_url_prepopulate_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url_prepopulate_data.cc
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.cc b/chrome/browser/search_engines/template_url_prepopulate_data.cc
index 66ec20b237ab0ccadbce5a66853f7fa18fc97598..e69a35ceae3f8f16fd28ed8d6ab082424f2eab37 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.cc
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc
@@ -3590,4 +3590,12 @@ int GetSearchEngineLogo(const GURL& url_to_find) {
return kNoSearchEngineLogo;
}
+TemplateURL* FindPrepopulatedEngine(const std::string& search_url) {
+ for (size_t i = 0; i < arraysize(kAllEngines); ++i) {
+ if (search_url == ToUTF8(kAllEngines[i]->search_url))
+ return MakePrepopulateTemplateURLFromPrepopulateEngine(*kAllEngines[i]);
+ }
+ return NULL;
+}
+
} // namespace TemplateURLPrepopulateData
« no previous file with comments | « chrome/browser/search_engines/template_url_prepopulate_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698