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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 // Make sure that wallpaper boot transition and other delays in OOBE | 574 // Make sure that wallpaper boot transition and other delays in OOBE |
575 // are disabled for tests and kiosk app launch by default. | 575 // are disabled for tests and kiosk app launch by default. |
576 // Individual tests may enable them if they want. | 576 // Individual tests may enable them if they want. |
577 if (parsed_command_line().HasSwitch(::switches::kTestType) || | 577 if (parsed_command_line().HasSwitch(::switches::kTestType) || |
578 ShouldAutoLaunchKioskApp(parsed_command_line())) { | 578 ShouldAutoLaunchKioskApp(parsed_command_line())) { |
579 WizardController::SetZeroDelays(); | 579 WizardController::SetZeroDelays(); |
580 } | 580 } |
581 | 581 |
582 // Enable/disable native CUPS integration | 582 // Enable/disable native CUPS integration |
583 printing::PrintBackend::SetNativeCupsEnabled( | 583 printing::PrintBackend::SetNativeCupsEnabled( |
584 parsed_command_line().HasSwitch(::switches::kEnableNativeCups)); | 584 !parsed_command_line().HasSwitch(::switches::kDisableNativeCups)); |
585 | 585 |
586 power_prefs_.reset(new PowerPrefs(PowerPolicyController::Get())); | 586 power_prefs_.reset(new PowerPrefs(PowerPolicyController::Get())); |
587 | 587 |
588 arc_kiosk_app_manager_.reset(new ArcKioskAppManager()); | 588 arc_kiosk_app_manager_.reset(new ArcKioskAppManager()); |
589 | 589 |
590 // In Aura builds this will initialize ash::Shell. | 590 // In Aura builds this will initialize ash::Shell. |
591 ChromeBrowserMainPartsLinux::PreProfileInit(); | 591 ChromeBrowserMainPartsLinux::PreProfileInit(); |
592 | 592 |
593 if (immediate_login) { | 593 if (immediate_login) { |
594 const std::string cryptohome_id = | 594 const std::string cryptohome_id = |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 | 980 |
981 ChromeBrowserMainPartsLinux::PostDestroyThreads(); | 981 ChromeBrowserMainPartsLinux::PostDestroyThreads(); |
982 | 982 |
983 // Destroy DeviceSettingsService after g_browser_process. | 983 // Destroy DeviceSettingsService after g_browser_process. |
984 DeviceSettingsService::Shutdown(); | 984 DeviceSettingsService::Shutdown(); |
985 | 985 |
986 chromeos::ShutdownCloseTracking(); | 986 chromeos::ShutdownCloseTracking(); |
987 } | 987 } |
988 | 988 |
989 } // namespace chromeos | 989 } // namespace chromeos |
OLD | NEW |