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

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

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

Powered by Google App Engine
This is Rietveld 408576698