| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/shell/browser/shell_extensions_browser_client.h" | 5 #include "extensions/shell/browser/shell_extensions_browser_client.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 BrowserContext* ShellExtensionsBrowserClient::GetOriginalContext( | 83 BrowserContext* ShellExtensionsBrowserClient::GetOriginalContext( |
| 84 BrowserContext* context) { | 84 BrowserContext* context) { |
| 85 return context; | 85 return context; |
| 86 } | 86 } |
| 87 | 87 |
| 88 #if defined(OS_CHROMEOS) | 88 #if defined(OS_CHROMEOS) |
| 89 std::string ShellExtensionsBrowserClient::GetUserIdHashFromContext( | 89 std::string ShellExtensionsBrowserClient::GetUserIdHashFromContext( |
| 90 content::BrowserContext* context) { | 90 content::BrowserContext* context) { |
| 91 return chromeos::LoginState::Get()->primary_user_hash(); | 91 return chromeos::LoginState::Get()->primary_user_hash(); |
| 92 } | 92 } |
| 93 |
| 94 void ShellExtensionsBrowserClient::SaveImageDataToClipboard( |
| 95 const std::vector<char>& image_data, |
| 96 api::clipboard::ImageType type, |
| 97 const base::Closure& success_callback, |
| 98 const ErrorCallback& error_callback) {} |
| 93 #endif | 99 #endif |
| 94 | 100 |
| 95 bool ShellExtensionsBrowserClient::IsGuestSession( | 101 bool ShellExtensionsBrowserClient::IsGuestSession( |
| 96 BrowserContext* context) const { | 102 BrowserContext* context) const { |
| 97 return false; | 103 return false; |
| 98 } | 104 } |
| 99 | 105 |
| 100 bool ShellExtensionsBrowserClient::IsExtensionIncognitoEnabled( | 106 bool ShellExtensionsBrowserClient::IsExtensionIncognitoEnabled( |
| 101 const std::string& extension_id, | 107 const std::string& extension_id, |
| 102 content::BrowserContext* context) const { | 108 content::BrowserContext* context) const { |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 return navigation_data->GetExtensionNavigationUIData(); | 267 return navigation_data->GetExtensionNavigationUIData(); |
| 262 } | 268 } |
| 263 | 269 |
| 264 KioskDelegate* ShellExtensionsBrowserClient::GetKioskDelegate() { | 270 KioskDelegate* ShellExtensionsBrowserClient::GetKioskDelegate() { |
| 265 if (!kiosk_delegate_) | 271 if (!kiosk_delegate_) |
| 266 kiosk_delegate_.reset(new ShellKioskDelegate()); | 272 kiosk_delegate_.reset(new ShellKioskDelegate()); |
| 267 return kiosk_delegate_.get(); | 273 return kiosk_delegate_.get(); |
| 268 } | 274 } |
| 269 | 275 |
| 270 } // namespace extensions | 276 } // namespace extensions |
| OLD | NEW |