OLD | NEW |
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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 std::unique_ptr<quirks::QuirksManager::Delegate>( | 613 std::unique_ptr<quirks::QuirksManager::Delegate>( |
614 new quirks::QuirksManagerDelegateImpl()), | 614 new quirks::QuirksManagerDelegateImpl()), |
615 content::BrowserThread::GetBlockingPool(), | 615 content::BrowserThread::GetBlockingPool(), |
616 g_browser_process->local_state(), | 616 g_browser_process->local_state(), |
617 g_browser_process->system_request_context()); | 617 g_browser_process->system_request_context()); |
618 | 618 |
619 // Start loading machine statistics here. StatisticsProvider::Shutdown() | 619 // Start loading machine statistics here. StatisticsProvider::Shutdown() |
620 // will ensure that loading is aborted on early exit. | 620 // will ensure that loading is aborted on early exit. |
621 bool load_oem_statistics = !StartupUtils::IsOobeCompleted(); | 621 bool load_oem_statistics = !StartupUtils::IsOobeCompleted(); |
622 system::StatisticsProvider::GetInstance()->StartLoadingMachineStatistics( | 622 system::StatisticsProvider::GetInstance()->StartLoadingMachineStatistics( |
623 content::BrowserThread::GetTaskRunnerForThread( | |
624 content::BrowserThread::FILE), | |
625 load_oem_statistics); | 623 load_oem_statistics); |
626 | 624 |
627 base::FilePath downloads_directory; | 625 base::FilePath downloads_directory; |
628 CHECK(PathService::Get(chrome::DIR_DEFAULT_DOWNLOADS, &downloads_directory)); | 626 CHECK(PathService::Get(chrome::DIR_DEFAULT_DOWNLOADS, &downloads_directory)); |
629 | 627 |
630 DeviceOAuth2TokenServiceFactory::Initialize(); | 628 DeviceOAuth2TokenServiceFactory::Initialize(); |
631 | 629 |
632 wake_on_wifi_manager_.reset(new WakeOnWifiManager()); | 630 wake_on_wifi_manager_.reset(new WakeOnWifiManager()); |
633 network_throttling_observer_.reset( | 631 network_throttling_observer_.reset( |
634 new NetworkThrottlingObserver(g_browser_process->local_state())); | 632 new NetworkThrottlingObserver(g_browser_process->local_state())); |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 // outlive CertLoader. | 1143 // outlive CertLoader. |
1146 system_token_certdb_initializer_.reset(); | 1144 system_token_certdb_initializer_.reset(); |
1147 | 1145 |
1148 ChromeBrowserMainPartsLinux::PostDestroyThreads(); | 1146 ChromeBrowserMainPartsLinux::PostDestroyThreads(); |
1149 | 1147 |
1150 // Destroy DeviceSettingsService after g_browser_process. | 1148 // Destroy DeviceSettingsService after g_browser_process. |
1151 DeviceSettingsService::Shutdown(); | 1149 DeviceSettingsService::Shutdown(); |
1152 } | 1150 } |
1153 | 1151 |
1154 } // namespace chromeos | 1152 } // namespace chromeos |
OLD | NEW |