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

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

Issue 2294973002: Create MediaRouterActionController and MediaRouterUIService (Closed)
Patch Set: Add MediaRouterUIService (KeyedService) Created 4 years, 3 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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 #endif 131 #endif
132 132
133 #if defined(ENABLE_SPELLCHECK) 133 #if defined(ENABLE_SPELLCHECK)
134 #include "chrome/browser/spellchecker/spellcheck_factory.h" 134 #include "chrome/browser/spellchecker/spellcheck_factory.h"
135 #endif 135 #endif
136 136
137 #if defined(ENABLE_SERVICE_DISCOVERY) 137 #if defined(ENABLE_SERVICE_DISCOVERY)
138 #include "chrome/browser/printing/cloud_print/privet_notifications_factory.h" 138 #include "chrome/browser/printing/cloud_print/privet_notifications_factory.h"
139 #endif 139 #endif
140 140
141 #if defined(ENABLE_MEDIA_ROUTER)
142 #include "chrome/browser/media/router/media_router_factory.h"
143 #if !defined(OS_ANDROID)
144 #include "chrome/browser/media/router/media_router_ui_service_factory.h"
145 #endif
146 #endif
147
141 namespace chrome { 148 namespace chrome {
142 149
143 void AddProfilesExtraParts(ChromeBrowserMainParts* main_parts) { 150 void AddProfilesExtraParts(ChromeBrowserMainParts* main_parts) {
144 main_parts->AddParts(new ChromeBrowserMainExtraPartsProfiles()); 151 main_parts->AddParts(new ChromeBrowserMainExtraPartsProfiles());
145 } 152 }
146 153
147 } // namespace chrome 154 } // namespace chrome
148 155
149 ChromeBrowserMainExtraPartsProfiles::ChromeBrowserMainExtraPartsProfiles() { 156 ChromeBrowserMainExtraPartsProfiles::ChromeBrowserMainExtraPartsProfiles() {
150 } 157 }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 extensions::NetworkingPrivateDelegateFactory::GetInstance() 263 extensions::NetworkingPrivateDelegateFactory::GetInstance()
257 ->SetVerifyDelegateFactory( 264 ->SetVerifyDelegateFactory(
258 std::move(networking_private_verify_delegate_factory)); 265 std::move(networking_private_verify_delegate_factory));
259 std::unique_ptr<extensions::NetworkingPrivateUIDelegateFactoryImpl> 266 std::unique_ptr<extensions::NetworkingPrivateUIDelegateFactoryImpl>
260 networking_private_ui_delegate_factory( 267 networking_private_ui_delegate_factory(
261 new extensions::NetworkingPrivateUIDelegateFactoryImpl); 268 new extensions::NetworkingPrivateUIDelegateFactoryImpl);
262 extensions::NetworkingPrivateDelegateFactory::GetInstance() 269 extensions::NetworkingPrivateDelegateFactory::GetInstance()
263 ->SetUIDelegateFactory(std::move(networking_private_ui_delegate_factory)); 270 ->SetUIDelegateFactory(std::move(networking_private_ui_delegate_factory));
264 #endif 271 #endif
265 #endif 272 #endif
273 #if defined(ENABLE_MEDIA_ROUTER)
274 media_router::MediaRouterFactory::GetInstance();
275 #if !defined(OS_ANDROID)
276 media_router::MediaRouterUIServiceFactory::GetInstance();
277 #endif
278 #endif // defined(ENABLE_MEDIA_ROUTER)
266 #if !defined(OS_ANDROID) 279 #if !defined(OS_ANDROID)
267 MediaGalleriesPreferencesFactory::GetInstance(); 280 MediaGalleriesPreferencesFactory::GetInstance();
268 NTPResourceCacheFactory::GetInstance(); 281 NTPResourceCacheFactory::GetInstance();
269 #endif 282 #endif
270 ContentSuggestionsServiceFactory::GetInstance(); 283 ContentSuggestionsServiceFactory::GetInstance();
271 PasswordStoreFactory::GetInstance(); 284 PasswordStoreFactory::GetInstance();
272 PasswordManagerSettingMigratorServiceFactory::GetInstance(); 285 PasswordManagerSettingMigratorServiceFactory::GetInstance();
273 #if !defined(OS_ANDROID) 286 #if !defined(OS_ANDROID)
274 PinnedTabServiceFactory::GetInstance(); 287 PinnedTabServiceFactory::GetInstance();
275 #endif 288 #endif
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 #endif 338 #endif
326 #if !defined(OS_ANDROID) 339 #if !defined(OS_ANDROID)
327 UsbChooserContextFactory::GetInstance(); 340 UsbChooserContextFactory::GetInstance();
328 #endif 341 #endif
329 WebDataServiceFactory::GetInstance(); 342 WebDataServiceFactory::GetInstance();
330 } 343 }
331 344
332 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { 345 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() {
333 EnsureBrowserContextKeyedServiceFactoriesBuilt(); 346 EnsureBrowserContextKeyedServiceFactoriesBuilt();
334 } 347 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698