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

Side by Side Diff: chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc

Issue 46853004: Move ExtensionPrefs and friends to extensions/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and update app_shell Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/settings_overrides/settings_overrides_ap i.h" 5 #include "chrome/browser/extensions/api/settings_overrides/settings_overrides_ap i.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/extensions/api/preference/preference_api.h" 10 #include "chrome/browser/extensions/api/preference/preference_api.h"
11 #include "chrome/browser/extensions/extension_prefs.h"
12 #include "chrome/browser/extensions/extension_prefs_factory.h"
13 #include "chrome/browser/prefs/session_startup_pref.h" 11 #include "chrome/browser/prefs/session_startup_pref.h"
14 #include "chrome/browser/search_engines/template_url.h" 12 #include "chrome/browser/search_engines/template_url.h"
15 #include "chrome/browser/search_engines/template_url_service_factory.h" 13 #include "chrome/browser/search_engines/template_url_service_factory.h"
16 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler. h" 14 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler. h"
17 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
18 #include "content/public/browser/notification_details.h" 16 #include "content/public/browser/notification_details.h"
19 #include "content/public/browser/notification_source.h" 17 #include "content/public/browser/notification_source.h"
18 #include "extensions/browser/extension_prefs.h"
19 #include "extensions/browser/extension_prefs_factory.h"
20 #include "extensions/common/error_utils.h" 20 #include "extensions/common/error_utils.h"
21 #include "extensions/common/manifest_constants.h" 21 #include "extensions/common/manifest_constants.h"
22 22
23 namespace extensions { 23 namespace extensions {
24 24
25 namespace { 25 namespace {
26 base::LazyInstance<ProfileKeyedAPIFactory<SettingsOverridesAPI> > 26 base::LazyInstance<ProfileKeyedAPIFactory<SettingsOverridesAPI> >
27 g_factory = LAZY_INSTANCE_INITIALIZER; 27 g_factory = LAZY_INSTANCE_INITIALIZER;
28 28
29 const char kManyStartupPagesWarning[] = "* specifies more than 1 startup URL. " 29 const char kManyStartupPagesWarning[] = "* specifies more than 1 startup URL. "
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 template <> 220 template <>
221 void ProfileKeyedAPIFactory<SettingsOverridesAPI>:: 221 void ProfileKeyedAPIFactory<SettingsOverridesAPI>::
222 DeclareFactoryDependencies() { 222 DeclareFactoryDependencies() {
223 DependsOn(ExtensionPrefsFactory::GetInstance()); 223 DependsOn(ExtensionPrefsFactory::GetInstance());
224 DependsOn(PreferenceAPI::GetFactoryInstance()); 224 DependsOn(PreferenceAPI::GetFactoryInstance());
225 DependsOn(TemplateURLServiceFactory::GetInstance()); 225 DependsOn(TemplateURLServiceFactory::GetInstance());
226 } 226 }
227 227
228 } // namespace extensions 228 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698