 Chromium Code Reviews
 Chromium Code Reviews Issue 2892403002:
  Introduce lock screen app context to extension features  (Closed)
    
  
    Issue 2892403002:
  Introduce lock screen app context to extension features  (Closed) 
  | 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/extensions/chrome_extensions_browser_client.h" | 5 #include "chrome/browser/extensions/chrome_extensions_browser_client.h" | 
| 6 | 6 | 
| 7 #include <utility> | 7 #include <utility> | 
| 8 | 8 | 
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" | 
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" | 
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 432 return nullptr; | 432 return nullptr; | 
| 433 return navigation_data->GetExtensionNavigationUIData(); | 433 return navigation_data->GetExtensionNavigationUIData(); | 
| 434 } | 434 } | 
| 435 | 435 | 
| 436 KioskDelegate* ChromeExtensionsBrowserClient::GetKioskDelegate() { | 436 KioskDelegate* ChromeExtensionsBrowserClient::GetKioskDelegate() { | 
| 437 if (!kiosk_delegate_) | 437 if (!kiosk_delegate_) | 
| 438 kiosk_delegate_.reset(new ChromeKioskDelegate()); | 438 kiosk_delegate_.reset(new ChromeKioskDelegate()); | 
| 439 return kiosk_delegate_.get(); | 439 return kiosk_delegate_.get(); | 
| 440 } | 440 } | 
| 441 | 441 | 
| 442 bool ChromeExtensionsBrowserClient::IsLockScreenContext( | |
| 
Devlin
2017/06/01 22:17:58
Is there a race condition here?  The comment in ex
 
tbarzic
2017/06/02 00:49:05
I think it should be fine - renderers for apps lau
 
Devlin
2017/06/03 02:19:14
+1 to having this be a new state in the future.
 | |
| 443 content::BrowserContext* context) { | |
| 444 #if defined(OS_CHROMEOS) | |
| 445 return chromeos::ProfileHelper::IsSigninProfile( | |
| 446 Profile::FromBrowserContext(context)) && | |
| 447 user_manager::UserManager::Get()->IsUserLoggedIn(); | |
| 448 #else | |
| 449 return false; | |
| 450 #endif | |
| 451 } | |
| 442 } // namespace extensions | 452 } // namespace extensions | 
| OLD | NEW |