diff options
author | vasilii@chromium.org <vasilii@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-07 00:31:13 +0000 |
---|---|---|
committer | vasilii@chromium.org <vasilii@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-07 00:31:13 +0000 |
commit | ea2f68eb8aabb511b2a21f2a62af96fadeea389e (patch) | |
tree | d0b9771b998bbe02a6f93d5da0248ad83a4c8095 /chrome/browser/extensions | |
parent | 1e91cca8eec6e6e75cc2a5bc0023026173ff9555 (diff) | |
download | chromium_src-ea2f68eb8aabb511b2a21f2a62af96fadeea389e.zip chromium_src-ea2f68eb8aabb511b2a21f2a62af96fadeea389e.tar.gz chromium_src-ea2f68eb8aabb511b2a21f2a62af96fadeea389e.tar.bz2 |
Add SettingsOverridesAPI dependence on TemplateURLServiceFactory.
BUG=267510
Review URL: https://codereview.chromium.org/54273004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r-- | chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc | 9 | ||||
-rw-r--r-- | chrome/browser/extensions/api/settings_overrides/settings_overrides_api.h | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc b/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc index b27d983..8028530 100644 --- a/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc +++ b/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc @@ -9,6 +9,7 @@ #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/extensions/api/preference/preference_api.h" #include "chrome/browser/extensions/extension_prefs.h" +#include "chrome/browser/extensions/extension_prefs_factory.h" #include "chrome/browser/prefs/session_startup_pref.h" #include "chrome/browser/search_engines/template_url.h" #include "chrome/browser/search_engines/template_url_service_factory.h" @@ -212,4 +213,12 @@ void SettingsOverridesAPI::RegisterSearchProvider( info.Pass()); } +template <> +void ProfileKeyedAPIFactory<SettingsOverridesAPI>:: + DeclareFactoryDependencies() { + DependsOn(ExtensionPrefsFactory::GetInstance()); + DependsOn(PreferenceAPI::GetFactoryInstance()); + DependsOn(TemplateURLServiceFactory::GetInstance()); +} + } // namespace extensions diff --git a/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.h b/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.h index a65b339..41cdb4d 100644 --- a/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.h +++ b/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.h @@ -64,6 +64,9 @@ class SettingsOverridesAPI : public ProfileKeyedAPI, DISALLOW_COPY_AND_ASSIGN(SettingsOverridesAPI); }; +template <> +void ProfileKeyedAPIFactory<SettingsOverridesAPI>::DeclareFactoryDependencies(); + } // namespace extensions #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_API_H_ |