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

Unified Diff: chrome/browser/search_engines/chrome_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: chrome/browser/search_engines/chrome_template_url_service_client.h
diff --git a/chrome/browser/search_engines/chrome_template_url_service_client.h b/chrome/browser/search_engines/chrome_template_url_service_client.h
index de0bfbfeed9078b80507a05822d796ac038dbeeb..b2621b2f8b28cf5e18e91ddfd348b984048b51f9 100644
--- a/chrome/browser/search_engines/chrome_template_url_service_client.h
+++ b/chrome/browser/search_engines/chrome_template_url_service_client.h
@@ -10,6 +10,14 @@
#include "components/history/core/browser/history_service_observer.h"
#include "components/search_engines/template_url_service_client.h"
+namespace base {
+class Value;
+}
+
+namespace extensions {
+class PreferenceAPI;
+}
+
namespace history {
class HistoryService;
}
@@ -20,7 +28,8 @@ class ChromeTemplateURLServiceClient : public TemplateURLServiceClient,
public history::HistoryServiceObserver {
public:
explicit ChromeTemplateURLServiceClient(
vasilii 2016/11/07 15:00:05 no explicit.
- history::HistoryService* history_service);
+ history::HistoryService* history_service,
+ extensions::PreferenceAPI* pref_api);
~ChromeTemplateURLServiceClient() override;
// TemplateURLServiceClient:
@@ -40,11 +49,16 @@ class ChromeTemplateURLServiceClient : public TemplateURLServiceClient,
const history::RedirectList& redirects,
base::Time visit_time) override;
+void SetExtensionControlledPref(
+ const std::string extension_id, const std::string pref_name,
vasilii 2016/11/07 15:00:05 const std::string&
+ std::unique_ptr<base::Value> pref_value) override;
+
private:
TemplateURLService* owner_;
ScopedObserver<history::HistoryService, history::HistoryServiceObserver>
history_service_observer_;
history::HistoryService* history_service_;
+ extensions::PreferenceAPI* pref_api_;
DISALLOW_COPY_AND_ASSIGN(ChromeTemplateURLServiceClient);
};

Powered by Google App Engine
This is Rietveld 408576698