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

Unified Diff: components/search_engines/template_url_service_client.h

Issue 2479113002: Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Created 4 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: components/search_engines/template_url_service_client.h
diff --git a/components/search_engines/template_url_service_client.h b/components/search_engines/template_url_service_client.h
index 77a22d26706f4ec8eeacf490f5212713a4ff6f4f..cd9756f843a723112d7479cbe1b52aa56a133dab 100644
--- a/components/search_engines/template_url_service_client.h
+++ b/components/search_engines/template_url_service_client.h
@@ -12,6 +12,10 @@ class GURL;
class TemplateURL;
class TemplateURLService;
+namespace base {
+class Value;
+}
+
// This interface provides history related functionality required by
// TemplateURLService.
// TODO(hashimoto): Get rid of this once HistoryService gets componentized.
@@ -40,6 +44,10 @@ class TemplateURLServiceClient {
// Given the main search |url| for a TemplateURL, returns whether the
// TemplateURL is from an omnibox extension.
virtual bool IsOmniboxExtensionURL(const std::string& url) = 0;
+
+ virtual void SetExtensionControlledPref(
+ const std::string extension_id, const std::string pref_name,
+ std::unique_ptr<base::Value> pref_value) = 0;
};
#endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698