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

Unified Diff: components/search_engines/default_search_manager.h

Issue 2623833005: Revert of Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « components/search_engines/BUILD.gn ('k') | components/search_engines/default_search_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search_engines/default_search_manager.h
diff --git a/components/search_engines/default_search_manager.h b/components/search_engines/default_search_manager.h
index 830bebb93286b0ff3cf8e1732255c7b6ea349dc7..aadc6a4648952a740881931ea7ac2c7fed629882 100644
--- a/components/search_engines/default_search_manager.h
+++ b/components/search_engines/default_search_manager.h
@@ -99,6 +99,14 @@
// Write default search provider data to |pref_service_|.
void SetUserSelectedDefaultSearchEngine(const TemplateURLData& data);
+ // Override the default search provider with an extension.
+ void SetExtensionControlledDefaultSearchEngine(const TemplateURLData& data);
+
+ // Clear the extension-provided default search engine. Does not explicitly
+ // disable Default Search. The new current default search engine will be
+ // defined by policy, extensions, or pre-populated data.
+ void ClearExtensionControlledDefaultSearchEngine();
+
// Clear the user's default search provider choice from |pref_service_|. Does
// not explicitly disable Default Search. The new default search
// engine will be defined by policy, extensions, or pre-populated data.
« no previous file with comments | « components/search_engines/BUILD.gn ('k') | components/search_engines/default_search_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698