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

Side by Side Diff: chrome/browser/ui/ash/multi_user/multi_user_window_manager_test.cc

Issue 2345043002: arc: Prevent showing Arc app window for secondary user profile. (Closed)
Patch Set: Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ui/ash/multi_user/multi_user_window_manager_test.h" 5 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_test.h"
6 6
7 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h" 7 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
8 #include "chrome/browser/ui/browser_window.h" 8 #include "chrome/browser/ui/browser_window.h"
9 #include "components/signin/core/account_id/account_id.h" 9 #include "components/signin/core/account_id/account_id.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
(...skipping 18 matching lines...) Expand all
29 // This object is owned by the MultiUserWindowManager since the 29 // This object is owned by the MultiUserWindowManager since the
30 // SetInstanceForTest call. As such no uninstall is required. 30 // SetInstanceForTest call. As such no uninstall is required.
31 } 31 }
32 32
33 void TestMultiUserWindowManager::SetWindowOwner( 33 void TestMultiUserWindowManager::SetWindowOwner(
34 aura::Window* window, 34 aura::Window* window,
35 const AccountId& account_id) { 35 const AccountId& account_id) {
36 NOTREACHED(); 36 NOTREACHED();
37 } 37 }
38 38
39 void TestMultiUserWindowManager::MarkWindowAsVisible(aura::Window* window) {
40 NOTREACHED();
41 }
42
39 const AccountId& TestMultiUserWindowManager::GetWindowOwner( 43 const AccountId& TestMultiUserWindowManager::GetWindowOwner(
40 aura::Window* window) const { 44 aura::Window* window) const {
41 // No matter which window will get queried - all browsers belong to the 45 // No matter which window will get queried - all browsers belong to the
42 // original browser's user. 46 // original browser's user.
43 return browser_owner_; 47 return browser_owner_;
44 } 48 }
45 49
46 void TestMultiUserWindowManager::ShowWindowForUser( 50 void TestMultiUserWindowManager::ShowWindowForUser(
47 aura::Window* window, 51 aura::Window* window,
48 const AccountId& account_id) { 52 const AccountId& account_id) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 93 }
90 94
91 void TestMultiUserWindowManager::AddUser(content::BrowserContext* profile) { 95 void TestMultiUserWindowManager::AddUser(content::BrowserContext* profile) {
92 } 96 }
93 97
94 void TestMultiUserWindowManager::AddObserver(Observer* observer) { 98 void TestMultiUserWindowManager::AddObserver(Observer* observer) {
95 } 99 }
96 100
97 void TestMultiUserWindowManager::RemoveObserver(Observer* observer) { 101 void TestMultiUserWindowManager::RemoveObserver(Observer* observer) {
98 } 102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698