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

Side by Side Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 2307433004: Fix chrome crashing in mustash on device. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/chromeos/chrome_browser_main_chromeos.h" 5 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 chromeos::DBusThreadManager::Get()->IsUsingStub( 207 chromeos::DBusThreadManager::Get()->IsUsingStub(
208 chromeos::DBusClientBundle::BLUETOOTH)); 208 chromeos::DBusClientBundle::BLUETOOTH));
209 209
210 PowerPolicyController::Initialize( 210 PowerPolicyController::Initialize(
211 DBusThreadManager::Get()->GetPowerManagerClient()); 211 DBusThreadManager::Get()->GetPowerManagerClient());
212 212
213 CrosDBusService::ServiceProviderList service_providers; 213 CrosDBusService::ServiceProviderList service_providers;
214 service_providers.push_back( 214 service_providers.push_back(
215 base::WrapUnique(ProxyResolutionServiceProvider::Create( 215 base::WrapUnique(ProxyResolutionServiceProvider::Create(
216 base::MakeUnique<ChromeProxyResolverDelegate>()))); 216 base::MakeUnique<ChromeProxyResolverDelegate>())));
217 service_providers.push_back(base::MakeUnique<DisplayPowerServiceProvider>( 217 if (!chrome::IsRunningInMash()) {
218 base::MakeUnique<ChromeDisplayPowerServiceProviderDelegate>())); 218 // TODO(crbug.com/629707): revisit this with mustash dbus work.
219 service_providers.push_back(base::MakeUnique<DisplayPowerServiceProvider>(
220 base::MakeUnique<ChromeDisplayPowerServiceProviderDelegate>()));
221 }
219 service_providers.push_back(base::MakeUnique<LivenessServiceProvider>()); 222 service_providers.push_back(base::MakeUnique<LivenessServiceProvider>());
220 service_providers.push_back(base::MakeUnique<ScreenLockServiceProvider>()); 223 service_providers.push_back(base::MakeUnique<ScreenLockServiceProvider>());
221 service_providers.push_back(base::MakeUnique<ConsoleServiceProvider>( 224 service_providers.push_back(base::MakeUnique<ConsoleServiceProvider>(
222 base::MakeUnique<ChromeConsoleServiceProviderDelegate>())); 225 base::MakeUnique<ChromeConsoleServiceProviderDelegate>()));
223 service_providers.push_back(base::MakeUnique<KioskInfoService>()); 226 service_providers.push_back(base::MakeUnique<KioskInfoService>());
224 CrosDBusService::Initialize(std::move(service_providers)); 227 CrosDBusService::Initialize(std::move(service_providers));
225 228
226 // Initialize PowerDataCollector after DBusThreadManager is initialized. 229 // Initialize PowerDataCollector after DBusThreadManager is initialized.
227 PowerDataCollector::Initialize(); 230 PowerDataCollector::Initialize();
228 231
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 // Destroy DBus services immediately after threads are stopped. 878 // Destroy DBus services immediately after threads are stopped.
876 dbus_services_.reset(); 879 dbus_services_.reset();
877 880
878 ChromeBrowserMainPartsLinux::PostDestroyThreads(); 881 ChromeBrowserMainPartsLinux::PostDestroyThreads();
879 882
880 // Destroy DeviceSettingsService after g_browser_process. 883 // Destroy DeviceSettingsService after g_browser_process.
881 DeviceSettingsService::Shutdown(); 884 DeviceSettingsService::Shutdown();
882 } 885 }
883 886
884 } // namespace chromeos 887 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698