Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Side by Side Diff: chrome/browser/chromeos/policy/device_local_account_browsertest.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/policy/device_local_account.h" 5 #include "chrome/browser/chromeos/policy/device_local_account.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <utility> 13 #include <utility>
14 #include <vector> 14 #include <vector>
15 15
16 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h" 16 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h"
17 #include "ash/common/system/chromeos/session/logout_confirmation_dialog.h" 17 #include "ash/common/system/chromeos/session/logout_confirmation_dialog.h"
18 #include "ash/common/wm_shell.h" 18 #include "ash/shell.h"
19 #include "base/bind.h" 19 #include "base/bind.h"
20 #include "base/bind_helpers.h" 20 #include "base/bind_helpers.h"
21 #include "base/callback.h" 21 #include "base/callback.h"
22 #include "base/command_line.h" 22 #include "base/command_line.h"
23 #include "base/files/file_path.h" 23 #include "base/files/file_path.h"
24 #include "base/files/file_util.h" 24 #include "base/files/file_util.h"
25 #include "base/json/json_reader.h" 25 #include "base/json/json_reader.h"
26 #include "base/json/json_writer.h" 26 #include "base/json/json_writer.h"
27 #include "base/location.h" 27 #include "base/location.h"
28 #include "base/macros.h" 28 #include "base/macros.h"
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 WaitForSessionStart(); 1530 WaitForSessionStart();
1531 1531
1532 Profile* profile = GetProfileForTest(); 1532 Profile* profile = GetProfileForTest();
1533 ASSERT_TRUE(profile); 1533 ASSERT_TRUE(profile);
1534 extensions::AppWindowRegistry* app_window_registry = 1534 extensions::AppWindowRegistry* app_window_registry =
1535 extensions::AppWindowRegistry::Get(profile); 1535 extensions::AppWindowRegistry::Get(profile);
1536 app_window_registry->AddObserver(this); 1536 app_window_registry->AddObserver(this);
1537 1537
1538 // Verify that the logout confirmation dialog is not showing. 1538 // Verify that the logout confirmation dialog is not showing.
1539 ash::LogoutConfirmationController* logout_confirmation_controller = 1539 ash::LogoutConfirmationController* logout_confirmation_controller =
1540 ash::WmShell::Get()->logout_confirmation_controller(); 1540 ash::Shell::Get()->logout_confirmation_controller();
1541 ASSERT_TRUE(logout_confirmation_controller); 1541 ASSERT_TRUE(logout_confirmation_controller);
1542 EXPECT_FALSE(logout_confirmation_controller->dialog_for_testing()); 1542 EXPECT_FALSE(logout_confirmation_controller->dialog_for_testing());
1543 1543
1544 // Remove policy that allows only explicitly whitelisted apps to be installed 1544 // Remove policy that allows only explicitly whitelisted apps to be installed
1545 // in a public session. 1545 // in a public session.
1546 extensions::ExtensionSystem* extension_system = 1546 extensions::ExtensionSystem* extension_system =
1547 extensions::ExtensionSystem::Get(profile); 1547 extensions::ExtensionSystem::Get(profile);
1548 ASSERT_TRUE(extension_system); 1548 ASSERT_TRUE(extension_system);
1549 extension_system->management_policy()->UnregisterAllProviders(); 1549 extension_system->management_policy()->UnregisterAllProviders();
1550 1550
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 ASSERT_TRUE(content::ExecuteScript(contents_, 2448 ASSERT_TRUE(content::ExecuteScript(contents_,
2449 "$('tos-accept-button').click();")); 2449 "$('tos-accept-button').click();"));
2450 2450
2451 WaitForSessionStart(); 2451 WaitForSessionStart();
2452 } 2452 }
2453 2453
2454 INSTANTIATE_TEST_CASE_P(TermsOfServiceDownloadTestInstance, 2454 INSTANTIATE_TEST_CASE_P(TermsOfServiceDownloadTestInstance,
2455 TermsOfServiceDownloadTest, testing::Bool()); 2455 TermsOfServiceDownloadTest, testing::Bool());
2456 2456
2457 } // namespace policy 2457 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_view.cc ('k') | chrome/browser/chromeos/power/login_lock_state_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698