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

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

Issue 8342049: Added Protector, hooked up DSE verification with error bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always persist default search provider in db Created 9 years, 2 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/search_engines/util.h
diff --git a/chrome/browser/search_engines/util.h b/chrome/browser/search_engines/util.h
index e517ba609f50bdf7afcba4fec1e4308bd198b9e4..09f001fb89121ddfbc9d01e55ddf835ab3f086e5 100644
--- a/chrome/browser/search_engines/util.h
+++ b/chrome/browser/search_engines/util.h
@@ -40,4 +40,13 @@ void GetSearchProvidersUsingKeywordResult(
const TemplateURL** default_search_provider,
int* new_resource_keyword_version);
+// Returns true if the default search provider setting has been changed or
+// corrupted. Returns the backup setting in |backup_default_search_provider|.
+// |*backup_default_search_provider| can be NULL if the original setting is
+// lost.
+bool DidDefaultSearchProviderChange(
+ const WDTypedResult& result,
+ const std::vector<TemplateURL*>& template_urls,
+ const TemplateURL** backup_default_search_provider);
+
#endif // CHROME_BROWSER_SEARCH_ENGINES_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698