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

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

Issue 12319145: Using the new Network*Handlers in networkingPrivate Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed some closing periods from comments. Created 7 years, 9 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 | Annotate | Revision Log
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/shell.h" 10 #include "ash/shell.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 content::BrowserThread::FILE)); 276 content::BrowserThread::FILE));
277 disks::DiskMountManager::Initialize(); 277 disks::DiskMountManager::Initialize();
278 cryptohome::AsyncMethodCaller::Initialize(); 278 cryptohome::AsyncMethodCaller::Initialize();
279 279
280 // Always initialize these handlers which should not conflict with 280 // Always initialize these handlers which should not conflict with
281 // NetworkLibrary. 281 // NetworkLibrary.
282 chromeos::network_event_log::Initialize(); 282 chromeos::network_event_log::Initialize();
283 chromeos::GeolocationHandler::Initialize(); 283 chromeos::GeolocationHandler::Initialize();
284 chromeos::NetworkStateHandler::Initialize(); 284 chromeos::NetworkStateHandler::Initialize();
285 285
286 if (CommandLine::ForCurrentProcess()->HasSwitch( 286 chromeos::NetworkConfigurationHandler::Initialize();
287 chromeos::switches::kEnableNewNetworkConfigurationHandlers)) { 287 chromeos::ManagedNetworkConfigurationHandler::Initialize();
288 chromeos::NetworkConfigurationHandler::Initialize();
289 chromeos::ManagedNetworkConfigurationHandler::Initialize();
290 }
291 288
292 // Initialize the network change notifier for Chrome OS. The network 289 // Initialize the network change notifier for Chrome OS. The network
293 // change notifier starts to monitor changes from the power manager and 290 // change notifier starts to monitor changes from the power manager and
294 // the network manager. 291 // the network manager.
295 if (CommandLine::ForCurrentProcess()->HasSwitch( 292 if (CommandLine::ForCurrentProcess()->HasSwitch(
296 chromeos::switches::kEnableNewNetworkChangeNotifier)) { 293 chromeos::switches::kEnableNewNetworkChangeNotifier)) {
297 NetworkChangeNotifierFactoryChromeos::GetInstance()->Initialize(); 294 NetworkChangeNotifierFactoryChromeos::GetInstance()->Initialize();
298 } else { 295 } else {
299 CrosNetworkChangeNotifierFactory::GetInstance()->Init(); 296 CrosNetworkChangeNotifierFactory::GetInstance()->Init();
300 } 297 }
(...skipping 17 matching lines...) Expand all
318 315
319 ~DBusServices() { 316 ~DBusServices() {
320 // CrosLibrary is shut down before DBusThreadManager even though it 317 // CrosLibrary is shut down before DBusThreadManager even though it
321 // is initialized first becuase some of its libraries depend on DBus 318 // is initialized first becuase some of its libraries depend on DBus
322 // clients. 319 // clients.
323 // TODO(hashimoto): Resolve this situation by removing CrosLibrary. 320 // TODO(hashimoto): Resolve this situation by removing CrosLibrary.
324 // (crosbug.com/26160) 321 // (crosbug.com/26160)
325 if (cros_initialized_ && CrosLibrary::Get()) 322 if (cros_initialized_ && CrosLibrary::Get())
326 CrosLibrary::Shutdown(); 323 CrosLibrary::Shutdown();
327 324
328 if (CommandLine::ForCurrentProcess()->HasSwitch( 325 chromeos::ManagedNetworkConfigurationHandler::Shutdown();
329 chromeos::switches::kEnableNewNetworkConfigurationHandlers)) { 326 chromeos::NetworkConfigurationHandler::Shutdown();
330 chromeos::ManagedNetworkConfigurationHandler::Shutdown();
331 chromeos::NetworkConfigurationHandler::Shutdown();
332 }
333 327
334 chromeos::ConnectivityStateHelper::Shutdown(); 328 chromeos::ConnectivityStateHelper::Shutdown();
335 chromeos::NetworkStateHandler::Shutdown(); 329 chromeos::NetworkStateHandler::Shutdown();
336 chromeos::GeolocationHandler::Shutdown(); 330 chromeos::GeolocationHandler::Shutdown();
337 chromeos::network_event_log::Shutdown(); 331 chromeos::network_event_log::Shutdown();
338 332
339 cryptohome::AsyncMethodCaller::Shutdown(); 333 cryptohome::AsyncMethodCaller::Shutdown();
340 disks::DiskMountManager::Shutdown(); 334 disks::DiskMountManager::Shutdown();
341 input_method::Shutdown(); 335 input_method::Shutdown();
342 CrosDBusService::Shutdown(); 336 CrosDBusService::Shutdown();
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 return; 851 return;
858 852
859 // If failed to launch, go back to login screen. 853 // If failed to launch, go back to login screen.
860 LOG(ERROR) << "Failed to launch kiosk app. Fall back to login screen"; 854 LOG(ERROR) << "Failed to launch kiosk app. Fall back to login screen";
861 OptionallyRunChromeOSLoginManager(parsed_command_line(), profile()); 855 OptionallyRunChromeOSLoginManager(parsed_command_line(), profile());
862 856
863 // TODO(xiyuan): Show error message. 857 // TODO(xiyuan): Show error message.
864 } 858 }
865 859
866 } // namespace chromeos 860 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698