| 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/browser/test_extensions_browser_client.h" | 5 #include "extensions/browser/test_extensions_browser_client.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/public/browser/browser_context.h" | 9 #include "content/public/browser/browser_context.h" |
| 10 #include "extensions/browser/extension_host_delegate.h" | 10 #include "extensions/browser/extension_host_delegate.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() { | 193 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() { |
| 194 return true; | 194 return true; |
| 195 } | 195 } |
| 196 | 196 |
| 197 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported( | 197 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported( |
| 198 const std::string& min_version) { | 198 const std::string& min_version) { |
| 199 return true; | 199 return true; |
| 200 } | 200 } |
| 201 | 201 |
| 202 void TestExtensionsBrowserClient::SaveImageDataToClipboard( |
| 203 const std::vector<char>& image_data, |
| 204 const clipboard::ImageType type, |
| 205 const base::Closure& success_callback, |
| 206 const base::Closure& error_callback) {} |
| 207 |
| 202 ExtensionWebContentsObserver* | 208 ExtensionWebContentsObserver* |
| 203 TestExtensionsBrowserClient::GetExtensionWebContentsObserver( | 209 TestExtensionsBrowserClient::GetExtensionWebContentsObserver( |
| 204 content::WebContents* web_contents) { | 210 content::WebContents* web_contents) { |
| 205 return nullptr; | 211 return nullptr; |
| 206 } | 212 } |
| 207 | 213 |
| 208 KioskDelegate* TestExtensionsBrowserClient::GetKioskDelegate() { | 214 KioskDelegate* TestExtensionsBrowserClient::GetKioskDelegate() { |
| 209 return nullptr; | 215 return nullptr; |
| 210 } | 216 } |
| 211 | 217 |
| 212 scoped_refptr<update_client::UpdateClient> | 218 scoped_refptr<update_client::UpdateClient> |
| 213 TestExtensionsBrowserClient::CreateUpdateClient( | 219 TestExtensionsBrowserClient::CreateUpdateClient( |
| 214 content::BrowserContext* context) { | 220 content::BrowserContext* context) { |
| 215 return update_client_factory_.is_null() | 221 return update_client_factory_.is_null() |
| 216 ? nullptr | 222 ? nullptr |
| 217 : make_scoped_refptr(update_client_factory_.Run()); | 223 : make_scoped_refptr(update_client_factory_.Run()); |
| 218 } | 224 } |
| 219 | 225 |
| 220 } // namespace extensions | 226 } // namespace extensions |
| OLD | NEW |