| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
| 7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/browser_shutdown.h" | 8 #include "chrome/browser/browser_shutdown.h" |
| 9 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 10 #include "chrome/browser/chromeos/cros/network_library.h" | 10 #include "chrome/browser/chromeos/cros/network_library.h" |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 EXPECT_CALL(mock_consumer, OnLoginSuccess(_, _, _, _)).Times(1); | 300 EXPECT_CALL(mock_consumer, OnLoginSuccess(_, _, _, _)).Times(1); |
| 301 OnExit(ScreenObserver::ENTERPRISE_AUTO_MAGIC_ENROLLMENT_COMPLETED); | 301 OnExit(ScreenObserver::ENTERPRISE_AUTO_MAGIC_ENROLLMENT_COMPLETED); |
| 302 // Prevent browser launch when the profile is prepared: | 302 // Prevent browser launch when the profile is prepared: |
| 303 browser_shutdown::SetTryingToQuit(true); | 303 browser_shutdown::SetTryingToQuit(true); |
| 304 // Run the tasks posted to complete the login: | 304 // Run the tasks posted to complete the login: |
| 305 MessageLoop::current()->RunAllPending(); | 305 MessageLoop::current()->RunAllPending(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 // TODO(nkostylev): Add test for WebUI accelerators http://crosbug.com/22571 | 308 // TODO(nkostylev): Add test for WebUI accelerators http://crosbug.com/22571 |
| 309 | 309 |
| 310 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 13, | 310 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 14, |
| 311 add_tests_for_new_control_flow_you_just_introduced); | 311 add_tests_for_new_control_flow_you_just_introduced); |
| 312 | 312 |
| 313 } // namespace chromeos | 313 } // namespace chromeos |
| OLD | NEW |