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 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
865 | 865 |
866 // Let the AutomaticRebootManager unregister itself as an observer of several | 866 // Let the AutomaticRebootManager unregister itself as an observer of several |
867 // subsystems. | 867 // subsystems. |
868 automatic_reboot_manager_.reset(); | 868 automatic_reboot_manager_.reset(); |
869 | 869 |
870 // Clean up dependency on CrosSettings and stop pending data fetches. | 870 // Clean up dependency on CrosSettings and stop pending data fetches. |
871 KioskAppManager::Shutdown(); | 871 KioskAppManager::Shutdown(); |
872 | 872 |
873 chrome::CloseAsh(); | 873 chrome::CloseAsh(); |
874 | 874 |
875 ChromeBrowserMainPartsLinux::PostMainMessageLoopRun(); | |
876 | |
875 // Destroy the UserManager after ash has been destroyed. | 877 // Destroy the UserManager after ash has been destroyed. |
stevenjb
2013/05/28 16:11:54
We should update this comment if there is an addit
| |
876 UserManager::Destroy(); | 878 UserManager::Destroy(); |
877 | |
878 ChromeBrowserMainPartsLinux::PostMainMessageLoopRun(); | |
879 } | 879 } |
880 | 880 |
881 void ChromeBrowserMainPartsChromeos::PostDestroyThreads() { | 881 void ChromeBrowserMainPartsChromeos::PostDestroyThreads() { |
882 ChromeBrowserMainPartsLinux::PostDestroyThreads(); | 882 ChromeBrowserMainPartsLinux::PostDestroyThreads(); |
883 // Destroy DeviceSettingsService after g_browser_process. | 883 // Destroy DeviceSettingsService after g_browser_process. |
884 DeviceSettingsService::Shutdown(); | 884 DeviceSettingsService::Shutdown(); |
885 } | 885 } |
886 | 886 |
887 void ChromeBrowserMainPartsChromeos::SetupPlatformFieldTrials() { | 887 void ChromeBrowserMainPartsChromeos::SetupPlatformFieldTrials() { |
888 SetupZramFieldTrial(); | 888 SetupZramFieldTrial(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
927 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); | 927 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); |
928 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); | 928 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); |
929 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); | 929 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); |
930 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); | 930 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); |
931 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); | 931 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); |
932 // This is necessary to start the experiment as a side effect. | 932 // This is necessary to start the experiment as a side effect. |
933 trial->group(); | 933 trial->group(); |
934 } | 934 } |
935 | 935 |
936 } // namespace chromeos | 936 } // namespace chromeos |
OLD | NEW |