| OLD | NEW |
| 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/chrome_shell_content_state.h" | 5 #include "chrome/browser/ui/ash/chrome_shell_content_state.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "chrome/browser/profiles/profile_manager.h" | 8 #include "chrome/browser/profiles/profile_manager.h" |
| 9 #include "components/user_manager/user_manager.h" |
| 9 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
| 10 | 11 |
| 11 #if defined(OS_CHROMEOS) | |
| 12 #include "components/user_manager/user_manager.h" | |
| 13 #endif | |
| 14 | |
| 15 ChromeShellContentState::ChromeShellContentState() {} | 12 ChromeShellContentState::ChromeShellContentState() {} |
| 16 ChromeShellContentState::~ChromeShellContentState() {} | 13 ChromeShellContentState::~ChromeShellContentState() {} |
| 17 | 14 |
| 18 content::BrowserContext* ChromeShellContentState::GetActiveBrowserContext() { | 15 content::BrowserContext* ChromeShellContentState::GetActiveBrowserContext() { |
| 19 #if defined(OS_CHROMEOS) | |
| 20 DCHECK(user_manager::UserManager::Get()->GetLoggedInUsers().size()); | 16 DCHECK(user_manager::UserManager::Get()->GetLoggedInUsers().size()); |
| 21 #endif | |
| 22 return ProfileManager::GetActiveUserProfile(); | 17 return ProfileManager::GetActiveUserProfile(); |
| 23 } | 18 } |
| OLD | NEW |