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

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

Issue 2108793002: mash: Convert system tray logout button to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more review comments, fix mash_unittests Created 4 years, 5 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
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/shell.h" 16 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h"
17 #include "ash/system/chromeos/session/logout_confirmation_controller.h" 17 #include "ash/common/system/chromeos/session/logout_confirmation_dialog.h"
18 #include "ash/system/chromeos/session/logout_confirmation_dialog.h" 18 #include "ash/common/wm_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 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 WaitForSessionStart(); 1527 WaitForSessionStart();
1528 1528
1529 Profile* profile = GetProfileForTest(); 1529 Profile* profile = GetProfileForTest();
1530 ASSERT_TRUE(profile); 1530 ASSERT_TRUE(profile);
1531 extensions::AppWindowRegistry* app_window_registry = 1531 extensions::AppWindowRegistry* app_window_registry =
1532 extensions::AppWindowRegistry::Get(profile); 1532 extensions::AppWindowRegistry::Get(profile);
1533 app_window_registry->AddObserver(this); 1533 app_window_registry->AddObserver(this);
1534 1534
1535 // Verify that the logout confirmation dialog is not showing. 1535 // Verify that the logout confirmation dialog is not showing.
1536 ash::LogoutConfirmationController* logout_confirmation_controller = 1536 ash::LogoutConfirmationController* logout_confirmation_controller =
1537 ash::Shell::GetInstance()->logout_confirmation_controller(); 1537 ash::WmShell::Get()->logout_confirmation_controller();
1538 ASSERT_TRUE(logout_confirmation_controller); 1538 ASSERT_TRUE(logout_confirmation_controller);
1539 EXPECT_FALSE(logout_confirmation_controller->dialog_for_testing()); 1539 EXPECT_FALSE(logout_confirmation_controller->dialog_for_testing());
1540 1540
1541 // Remove policy that allows only explicitly whitelisted apps to be installed 1541 // Remove policy that allows only explicitly whitelisted apps to be installed
1542 // in a public session. 1542 // in a public session.
1543 extensions::ExtensionSystem* extension_system = 1543 extensions::ExtensionSystem* extension_system =
1544 extensions::ExtensionSystem::Get(profile); 1544 extensions::ExtensionSystem::Get(profile);
1545 ASSERT_TRUE(extension_system); 1545 ASSERT_TRUE(extension_system);
1546 extension_system->management_policy()->UnregisterAllProviders(); 1546 extension_system->management_policy()->UnregisterAllProviders();
1547 1547
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
2444 ASSERT_TRUE(content::ExecuteScript(contents_, 2444 ASSERT_TRUE(content::ExecuteScript(contents_,
2445 "$('tos-accept-button').click();")); 2445 "$('tos-accept-button').click();"));
2446 2446
2447 WaitForSessionStart(); 2447 WaitForSessionStart();
2448 } 2448 }
2449 2449
2450 INSTANTIATE_TEST_CASE_P(TermsOfServiceDownloadTestInstance, 2450 INSTANTIATE_TEST_CASE_P(TermsOfServiceDownloadTestInstance,
2451 TermsOfServiceDownloadTest, testing::Bool()); 2451 TermsOfServiceDownloadTest, testing::Bool());
2452 2452
2453 } // namespace policy 2453 } // namespace policy
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698