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 <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "apps/app_window_registry.h" | 8 #include "apps/app_window_registry.h" |
9 #include "apps/ui/native_app_window.h" | 9 #include "apps/ui/native_app_window.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 argv.erase(argv.begin() + argv.size() - command_line->GetArgs().size(), | 336 argv.erase(argv.begin() + argv.size() - command_line->GetArgs().size(), |
337 argv.end()); | 337 argv.end()); |
338 command_line->InitFromArgv(argv); | 338 command_line->InitFromArgv(argv); |
339 | 339 |
340 InstallOwnerKey(); | 340 InstallOwnerKey(); |
341 MarkAsEnterpriseOwned(); | 341 MarkAsEnterpriseOwned(); |
342 | 342 |
343 InitializePolicy(); | 343 InitializePolicy(); |
344 } | 344 } |
345 | 345 |
346 virtual void CleanUpOnMainThread() OVERRIDE { | 346 virtual void TearDownOnMainThread() OVERRIDE { |
347 BrowserList::RemoveObserver(this); | 347 BrowserList::RemoveObserver(this); |
348 | 348 |
349 // This shuts down the login UI. | 349 // This shuts down the login UI. |
350 base::MessageLoop::current()->PostTask(FROM_HERE, | 350 base::MessageLoop::current()->PostTask(FROM_HERE, |
351 base::Bind(&chrome::AttemptExit)); | 351 base::Bind(&chrome::AttemptExit)); |
352 base::RunLoop().RunUntilIdle(); | 352 base::RunLoop().RunUntilIdle(); |
353 } | 353 } |
354 | 354 |
355 virtual void LocalStateChanged(chromeos::UserManager* user_manager) OVERRIDE { | 355 virtual void LocalStateChanged(chromeos::UserManager* user_manager) OVERRIDE { |
356 if (run_loop_) | 356 if (run_loop_) |
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1399 if (!IsSessionStarted()) { | 1399 if (!IsSessionStarted()) { |
1400 content::WindowedNotificationObserver(chrome::NOTIFICATION_SESSION_STARTED, | 1400 content::WindowedNotificationObserver(chrome::NOTIFICATION_SESSION_STARTED, |
1401 base::Bind(IsSessionStarted)).Wait(); | 1401 base::Bind(IsSessionStarted)).Wait(); |
1402 } | 1402 } |
1403 } | 1403 } |
1404 | 1404 |
1405 INSTANTIATE_TEST_CASE_P(TermsOfServiceTestInstance, | 1405 INSTANTIATE_TEST_CASE_P(TermsOfServiceTestInstance, |
1406 TermsOfServiceTest, testing::Bool()); | 1406 TermsOfServiceTest, testing::Bool()); |
1407 | 1407 |
1408 } // namespace policy | 1408 } // namespace policy |
OLD | NEW |