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

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

Issue 690943003: Move network_connect code to ui/chromeos/network (Take 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « ash/system/system_notifier.cc ('k') | chrome/browser/chromeos/mobile/mobile_activator.cc » ('j') | 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 <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 NetworkHandler::Initialize(); 177 NetworkHandler::Initialize();
178 CertLibrary::Initialize(); 178 CertLibrary::Initialize();
179 179
180 // Initialize the network change notifier for Chrome OS. The network 180 // Initialize the network change notifier for Chrome OS. The network
181 // change notifier starts to monitor changes from the power manager and 181 // change notifier starts to monitor changes from the power manager and
182 // the network manager. 182 // the network manager.
183 NetworkChangeNotifierFactoryChromeos::GetInstance()->Initialize(); 183 NetworkChangeNotifierFactoryChromeos::GetInstance()->Initialize();
184 184
185 // Initialize the NetworkConnect handler. 185 // Initialize the NetworkConnect handler.
186 network_connect_delegate_.reset(new NetworkConnectDelegateChromeOS); 186 network_connect_delegate_.reset(new NetworkConnectDelegateChromeOS);
187 ash::NetworkConnect::Initialize(network_connect_delegate_.get()); 187 ui::NetworkConnect::Initialize(network_connect_delegate_.get());
188 188
189 // Likewise, initialize the upgrade detector for Chrome OS. The upgrade 189 // Likewise, initialize the upgrade detector for Chrome OS. The upgrade
190 // detector starts to monitor changes from the update engine. 190 // detector starts to monitor changes from the update engine.
191 UpgradeDetectorChromeos::GetInstance()->Init(); 191 UpgradeDetectorChromeos::GetInstance()->Init();
192 192
193 // Initialize the device settings service so that we'll take actions per 193 // Initialize the device settings service so that we'll take actions per
194 // signals sent from the session manager. This needs to happen before 194 // signals sent from the session manager. This needs to happen before
195 // g_browser_process initializes BrowserPolicyConnector. 195 // g_browser_process initializes BrowserPolicyConnector.
196 DeviceSettingsService::Initialize(); 196 DeviceSettingsService::Initialize();
197 DeviceSettingsService::Get()->SetSessionManager( 197 DeviceSettingsService::Get()->SetSessionManager(
198 DBusThreadManager::Get()->GetSessionManagerClient(), 198 DBusThreadManager::Get()->GetSessionManagerClient(),
199 OwnerSettingsServiceChromeOSFactory::GetInstance()->GetOwnerKeyUtil()); 199 OwnerSettingsServiceChromeOSFactory::GetInstance()->GetOwnerKeyUtil());
200 } 200 }
201 201
202 ~DBusServices() { 202 ~DBusServices() {
203 ash::NetworkConnect::Shutdown(); 203 ui::NetworkConnect::Shutdown();
204 network_connect_delegate_.reset(); 204 network_connect_delegate_.reset();
205 205
206 CertLibrary::Shutdown(); 206 CertLibrary::Shutdown();
207 NetworkHandler::Shutdown(); 207 NetworkHandler::Shutdown();
208 208
209 cryptohome::AsyncMethodCaller::Shutdown(); 209 cryptohome::AsyncMethodCaller::Shutdown();
210 disks::DiskMountManager::Shutdown(); 210 disks::DiskMountManager::Shutdown();
211 211
212 SystemSaltGetter::Shutdown(); 212 SystemSaltGetter::Shutdown();
213 LoginState::Shutdown(); 213 LoginState::Shutdown();
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 // Destroy DBus services immediately after threads are stopped. 782 // Destroy DBus services immediately after threads are stopped.
783 dbus_services_.reset(); 783 dbus_services_.reset();
784 784
785 ChromeBrowserMainPartsLinux::PostDestroyThreads(); 785 ChromeBrowserMainPartsLinux::PostDestroyThreads();
786 786
787 // Destroy DeviceSettingsService after g_browser_process. 787 // Destroy DeviceSettingsService after g_browser_process.
788 DeviceSettingsService::Shutdown(); 788 DeviceSettingsService::Shutdown();
789 } 789 }
790 790
791 } // namespace chromeos 791 } // namespace chromeos
OLDNEW
« no previous file with comments | « ash/system/system_notifier.cc ('k') | chrome/browser/chromeos/mobile/mobile_activator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698