| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/ui/ash/multi_user/multi_user_window_manager.h" | 5 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" |
| 6 | 6 |
| 7 #include "ash/common/ash_switches.h" | 7 #include "ash/common/ash_switches.h" |
| 8 #include "ash/common/multi_profile_uma.h" |
| 8 #include "ash/common/session/session_state_delegate.h" | 9 #include "ash/common/session/session_state_delegate.h" |
| 9 #include "ash/common/shell_delegate.h" | 10 #include "ash/common/shell_delegate.h" |
| 10 #include "ash/common/wm_shell.h" | 11 #include "ash/common/wm_shell.h" |
| 11 #include "ash/multi_profile_uma.h" | |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h" | 14 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h" |
| 15 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_stub.h" | 15 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_stub.h" |
| 16 #include "components/signin/core/account_id/account_id.h" | 16 #include "components/signin/core/account_id/account_id.h" |
| 17 #include "components/user_manager/user_info.h" | 17 #include "components/user_manager/user_info.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 chrome::MultiUserWindowManager* g_instance = NULL; | 20 chrome::MultiUserWindowManager* g_instance = NULL; |
| 21 } // namespace | 21 } // namespace |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void MultiUserWindowManager::SetInstanceForTest( | 95 void MultiUserWindowManager::SetInstanceForTest( |
| 96 MultiUserWindowManager* instance, | 96 MultiUserWindowManager* instance, |
| 97 MultiProfileMode mode) { | 97 MultiProfileMode mode) { |
| 98 if (g_instance) | 98 if (g_instance) |
| 99 DeleteInstance(); | 99 DeleteInstance(); |
| 100 g_instance = instance; | 100 g_instance = instance; |
| 101 multi_user_mode_ = mode; | 101 multi_user_mode_ = mode; |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace chrome | 104 } // namespace chrome |
| OLD | NEW |