| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 if (!parsed_command_line.HasSwitch(::switches::kTestName)) { | 263 if (!parsed_command_line.HasSwitch(::switches::kTestName)) { |
| 264 // We did not log in (we crashed or are debugging), so we need to | 264 // We did not log in (we crashed or are debugging), so we need to |
| 265 // restore Sync. | 265 // restore Sync. |
| 266 LoginUtils::Get()->RestoreAuthenticationSession(profile); | 266 LoginUtils::Get()->RestoreAuthenticationSession(profile); |
| 267 } | 267 } |
| 268 } | 268 } |
| 269 } | 269 } |
| 270 | 270 |
| 271 void RunAutoLaunchKioskApp() { | 271 void RunAutoLaunchKioskApp() { |
| 272 // KioskAppLauncher deletes itself when done. | 272 // KioskAppLauncher deletes itself when done. |
| 273 (new KioskAppLauncher( | 273 (new KioskAppLauncher(KioskAppManager::Get(), |
| 274 KioskAppManager::Get()->GetAutoLaunchApp()))->Start(); | 274 KioskAppManager::Get()->GetAutoLaunchApp()))->Start(); |
| 275 | 275 |
| 276 // Login screen is skipped but 'login-prompt-visible' signal is still needed. | 276 // Login screen is skipped but 'login-prompt-visible' signal is still needed. |
| 277 LOG(INFO) << "Kiosk app auto launch >> login-prompt-visible"; | 277 LOG(INFO) << "Kiosk app auto launch >> login-prompt-visible"; |
| 278 DBusThreadManager::Get()->GetSessionManagerClient()-> | 278 DBusThreadManager::Get()->GetSessionManagerClient()-> |
| 279 EmitLoginPromptVisible(); | 279 EmitLoginPromptVisible(); |
| 280 } | 280 } |
| 281 | 281 |
| 282 } // namespace | 282 } // namespace |
| 283 | 283 |
| 284 namespace internal { | 284 namespace internal { |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); | 909 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); |
| 910 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); | 910 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); |
| 911 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); | 911 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); |
| 912 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); | 912 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); |
| 913 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); | 913 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); |
| 914 // This is necessary to start the experiment as a side effect. | 914 // This is necessary to start the experiment as a side effect. |
| 915 trial->group(); | 915 trial->group(); |
| 916 } | 916 } |
| 917 | 917 |
| 918 } // namespace chromeos | 918 } // namespace chromeos |
| OLD | NEW |