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

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

Issue 158143002: Fine tuned availability of hotword plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 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 | 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/profiles/chrome_browser_main_extra_parts_profiles.h" 5 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h"
6 6
7 #include "apps/app_keep_alive_service_factory.h" 7 #include "apps/app_keep_alive_service_factory.h"
8 #include "apps/app_load_service_factory.h" 8 #include "apps/app_load_service_factory.h"
9 #include "apps/app_restore_service_factory.h" 9 #include "apps/app_restore_service_factory.h"
10 #include "apps/shell_window_geometry_cache.h" 10 #include "apps/shell_window_geometry_cache.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 #endif 159 #endif
160 160
161 #if defined(OS_ANDROID) 161 #if defined(OS_ANDROID)
162 #include "chrome/browser/media/protected_media_identifier_permission_context_fac tory.h" 162 #include "chrome/browser/media/protected_media_identifier_permission_context_fac tory.h"
163 #else 163 #else
164 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" 164 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
165 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h" 165 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h"
166 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" 166 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h"
167 #endif 167 #endif
168 168
169 #if defined(ENABLE_APP_LIST)
170 #include "chrome/browser/ui/app_list/start_page_service_factory.h"
171 #endif
172
169 #if defined(ENABLE_SPELLCHECK) 173 #if defined(ENABLE_SPELLCHECK)
170 #include "chrome/browser/extensions/api/spellcheck/spellcheck_api.h" 174 #include "chrome/browser/extensions/api/spellcheck/spellcheck_api.h"
171 #include "chrome/browser/spellchecker/spellcheck_factory.h" 175 #include "chrome/browser/spellchecker/spellcheck_factory.h"
172 #endif 176 #endif
173 177
174 #if defined(ENABLE_MDNS) 178 #if defined(ENABLE_MDNS)
175 #include "chrome/browser/local_discovery/privet_notifications_factory.h" 179 #include "chrome/browser/local_discovery/privet_notifications_factory.h"
176 #endif 180 #endif
177 181
178 namespace chrome { 182 namespace chrome {
(...skipping 17 matching lines...) Expand all
196 // creation message to the services that want to create their services at 200 // creation message to the services that want to create their services at
197 // profile creation time. 201 // profile creation time.
198 // 202 //
199 // TODO(erg): This needs to be something else. I don't think putting every 203 // TODO(erg): This needs to be something else. I don't think putting every
200 // FooServiceFactory here will scale or is desirable long term. 204 // FooServiceFactory here will scale or is desirable long term.
201 // 205 //
202 // static 206 // static
203 void ChromeBrowserMainExtraPartsProfiles:: 207 void ChromeBrowserMainExtraPartsProfiles::
204 EnsureBrowserContextKeyedServiceFactoriesBuilt() { 208 EnsureBrowserContextKeyedServiceFactoriesBuilt() {
205 AboutSigninInternalsFactory::GetInstance(); 209 AboutSigninInternalsFactory::GetInstance();
210 #if defined(ENABLE_APP_LIST)
211 app_list::StartPageServiceFactory::GetInstance();
212 #endif
206 autofill::PersonalDataManagerFactory::GetInstance(); 213 autofill::PersonalDataManagerFactory::GetInstance();
207 #if !defined(OS_ANDROID) 214 #if !defined(OS_ANDROID)
208 AutomaticProfileResetterFactory::GetInstance(); 215 AutomaticProfileResetterFactory::GetInstance();
209 #endif 216 #endif
210 #if defined(ENABLE_BACKGROUND) 217 #if defined(ENABLE_BACKGROUND)
211 BackgroundContentsServiceFactory::GetInstance(); 218 BackgroundContentsServiceFactory::GetInstance();
212 #endif 219 #endif
213 BookmarkModelFactory::GetInstance(); 220 BookmarkModelFactory::GetInstance();
214 #if !defined(OS_ANDROID) 221 #if !defined(OS_ANDROID)
215 BookmarkUndoServiceFactory::GetInstance(); 222 BookmarkUndoServiceFactory::GetInstance();
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 #endif 405 #endif
399 #if defined(ENABLE_EXTENSIONS) 406 #if defined(ENABLE_EXTENSIONS)
400 TokenCacheServiceFactory::GetInstance(); 407 TokenCacheServiceFactory::GetInstance();
401 #endif 408 #endif
402 WebDataServiceFactory::GetInstance(); 409 WebDataServiceFactory::GetInstance();
403 } 410 }
404 411
405 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { 412 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() {
406 EnsureBrowserContextKeyedServiceFactoriesBuilt(); 413 EnsureBrowserContextKeyedServiceFactoriesBuilt();
407 } 414 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698