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

Unified Diff: components/search_engines/template_url_service.h

Issue 1211083006: Move TemplateURLService preferences registration to the component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: components/search_engines/template_url_service.h
diff --git a/components/search_engines/template_url_service.h b/components/search_engines/template_url_service.h
index ccf0db40454e3b27a6612e0055f0f24679b8c173..f77879cdab5ed455f5be883a18e9390dd9fd5ee5 100644
--- a/components/search_engines/template_url_service.h
+++ b/components/search_engines/template_url_service.h
@@ -45,6 +45,10 @@ class SyncData;
class SyncErrorFactory;
}
+namespace user_prefs {
+class PrefRegistrySyncable;
+}
+
// TemplateURLService is the backend for keywords. It's used by
// KeywordAutocomplete.
//
@@ -98,6 +102,9 @@ class TemplateURLService : public WebDataServiceConsumer,
TemplateURLService(const Initializer* initializers, const int count);
~TemplateURLService() override;
+ // Register Profile preferences in |registry|.
+ static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
+
// Removes any unnecessary characters from a user input keyword.
// This removes the leading scheme, "www." and any trailing slash.
static base::string16 CleanUserInputKeyword(const base::string16& keyword);
« no previous file with comments | « chrome/browser/search_engines/template_url_service_factory.cc ('k') | components/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698