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

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

Issue 8575018: Protector histograms for default search provider change added. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/search_engines/template_url_prepopulate_data.h
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.h b/chrome/browser/search_engines/template_url_prepopulate_data.h
index 1898fde3820d082b98f1977aed17208613ad1f58..cadc04c4990ac6417239859d266f746abf496dab 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.h
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.h
@@ -7,6 +7,7 @@
#pragma once
#include <stddef.h>
+#include <string>
#include <vector>
class GURL;
@@ -44,6 +45,10 @@ TemplateURL* GetEngineForOrigin(PrefService* prefs, const GURL& url_to_find);
// Returns search engine logo for URLs known to have a search engine logo.
int GetSearchEngineLogo(const GURL& url_to_find);
+// Returns the prepopulated search provider whose search URL matches
+// |search_url| or NULL if none is found.
whywhat 2011/11/21 17:14:57 Document that the owner owns the returned value.
Ivan Korotkov 2011/11/21 17:39:22 Done.
+TemplateURL* FindPrepopulatedEngine(const std::string& search_url);
+
} // namespace TemplateURLPrepopulateData
#endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698