| 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 <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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 suspend_observer_.reset(new SuspendObserver()); | 679 suspend_observer_.reset(new SuspendObserver()); |
| 680 if (KioskModeSettings::Get()->IsKioskModeEnabled()) { | 680 if (KioskModeSettings::Get()->IsKioskModeEnabled()) { |
| 681 retail_mode_power_save_blocker_ = content::PowerSaveBlocker::Create( | 681 retail_mode_power_save_blocker_ = content::PowerSaveBlocker::Create( |
| 682 content::PowerSaveBlocker::kPowerSaveBlockPreventDisplaySleep, | 682 content::PowerSaveBlocker::kPowerSaveBlockPreventDisplaySleep, |
| 683 "Retail mode"); | 683 "Retail mode"); |
| 684 } | 684 } |
| 685 chromeos::accessibility::Initialize(); | 685 chromeos::accessibility::Initialize(); |
| 686 | 686 |
| 687 peripheral_battery_observer_.reset(new PeripheralBatteryObserver()); | 687 peripheral_battery_observer_.reset(new PeripheralBatteryObserver()); |
| 688 | 688 |
| 689 storage_monitor_->Init(); | |
| 690 | |
| 691 // Initialize the network portal detector for Chrome OS. The network | 689 // Initialize the network portal detector for Chrome OS. The network |
| 692 // portal detector starts to listen for notifications from | 690 // portal detector starts to listen for notifications from |
| 693 // NetworkLibrary about changes in the NetworkManager and initiates | 691 // NetworkLibrary about changes in the NetworkManager and initiates |
| 694 // captive portal detection for active networks. | 692 // captive portal detection for active networks. |
| 695 NetworkPortalDetector* detector = NetworkPortalDetector::GetInstance(); | 693 NetworkPortalDetector* detector = NetworkPortalDetector::GetInstance(); |
| 696 if (NetworkPortalDetector::IsEnabledInCommandLine() && detector) { | 694 if (NetworkPortalDetector::IsEnabledInCommandLine() && detector) { |
| 697 detector->Init(); | 695 detector->Init(); |
| 698 #if defined(GOOGLE_CHROME_BUILD) | 696 #if defined(GOOGLE_CHROME_BUILD) |
| 699 bool is_official_build = true; | 697 bool is_official_build = true; |
| 700 #else | 698 #else |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 895 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); | 893 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); |
| 896 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); | 894 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); |
| 897 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); | 895 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); |
| 898 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); | 896 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); |
| 899 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); | 897 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); |
| 900 // This is necessary to start the experiment as a side effect. | 898 // This is necessary to start the experiment as a side effect. |
| 901 trial->group(); | 899 trial->group(); |
| 902 } | 900 } |
| 903 | 901 |
| 904 } // namespace chromeos | 902 } // namespace chromeos |
| OLD | NEW |