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); |
}; |