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

Side by Side Diff: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc

Issue 785723002: Add new extension APIs related to animation policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update code Created 5 years, 10 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
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/profiles/chrome_browser_main_extra_parts_profiles.h" 5 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h"
6 6
7 #include "chrome/browser/accessibility/accessibility_notifier_factory.h"
7 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" 8 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h"
8 #include "chrome/browser/autofill/personal_data_manager_factory.h" 9 #include "chrome/browser/autofill/personal_data_manager_factory.h"
9 #include "chrome/browser/background/background_contents_service_factory.h" 10 #include "chrome/browser/background/background_contents_service_factory.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
11 #include "chrome/browser/chrome_browser_main.h" 12 #include "chrome/browser/chrome_browser_main.h"
12 #include "chrome/browser/content_settings/cookie_settings.h" 13 #include "chrome/browser/content_settings/cookie_settings.h"
13 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" 14 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
14 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" 15 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h"
15 #include "chrome/browser/domain_reliability/service_factory.h" 16 #include "chrome/browser/domain_reliability/service_factory.h"
16 #include "chrome/browser/download/download_service_factory.h" 17 #include "chrome/browser/download/download_service_factory.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // dependency graph when we create a profile so we can dispatch the profile 138 // dependency graph when we create a profile so we can dispatch the profile
138 // creation message to the services that want to create their services at 139 // creation message to the services that want to create their services at
139 // profile creation time. 140 // profile creation time.
140 // 141 //
141 // TODO(erg): This needs to be something else. I don't think putting every 142 // TODO(erg): This needs to be something else. I don't think putting every
142 // FooServiceFactory here will scale or is desirable long term. 143 // FooServiceFactory here will scale or is desirable long term.
143 // 144 //
144 // static 145 // static
145 void ChromeBrowserMainExtraPartsProfiles:: 146 void ChromeBrowserMainExtraPartsProfiles::
146 EnsureBrowserContextKeyedServiceFactoriesBuilt() { 147 EnsureBrowserContextKeyedServiceFactoriesBuilt() {
148 AccessibilityNotifierFactory::GetInstance();
147 #if defined(ENABLE_EXTENSIONS) 149 #if defined(ENABLE_EXTENSIONS)
148 apps::EnsureBrowserContextKeyedServiceFactoriesBuilt(); 150 apps::EnsureBrowserContextKeyedServiceFactoriesBuilt();
149 extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt(); 151 extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt();
150 extensions::ExtensionManagementFactory::GetInstance(); 152 extensions::ExtensionManagementFactory::GetInstance();
151 chrome_extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt(); 153 chrome_extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt();
152 AppShortcutManagerFactory::GetInstance(); 154 AppShortcutManagerFactory::GetInstance();
153 EphemeralAppServiceFactory::GetInstance(); 155 EphemeralAppServiceFactory::GetInstance();
154 #endif 156 #endif
155 157
156 #if defined(ENABLE_APP_LIST) 158 #if defined(ENABLE_APP_LIST)
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 TemplateURLServiceFactory::GetInstance(); 278 TemplateURLServiceFactory::GetInstance();
277 #if defined(ENABLE_THEMES) 279 #if defined(ENABLE_THEMES)
278 ThemeServiceFactory::GetInstance(); 280 ThemeServiceFactory::GetInstance();
279 #endif 281 #endif
280 WebDataServiceFactory::GetInstance(); 282 WebDataServiceFactory::GetInstance();
281 } 283 }
282 284
283 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { 285 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() {
284 EnsureBrowserContextKeyedServiceFactoriesBuilt(); 286 EnsureBrowserContextKeyedServiceFactoriesBuilt();
285 } 287 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698