Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: extensions/browser/test_extensions_browser_client.cc

Issue 2379573008: Add SetImageData api to chrome.clipboard. (Closed)
Patch Set: Fix interactive_ui_tests issue. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 BrowserContext* TestExtensionsBrowserClient::GetOriginalContext( 76 BrowserContext* TestExtensionsBrowserClient::GetOriginalContext(
77 BrowserContext* context) { 77 BrowserContext* context) {
78 return main_context_; 78 return main_context_;
79 } 79 }
80 80
81 #if defined(OS_CHROMEOS) 81 #if defined(OS_CHROMEOS)
82 std::string TestExtensionsBrowserClient::GetUserIdHashFromContext( 82 std::string TestExtensionsBrowserClient::GetUserIdHashFromContext(
83 content::BrowserContext* context) { 83 content::BrowserContext* context) {
84 return ""; 84 return "";
85 } 85 }
86
dcheng 2016/11/17 01:13:32 Nit: remove this newline.
jennyz 2016/12/07 01:21:48 Done.
86 #endif 87 #endif
87 88
88 bool TestExtensionsBrowserClient::IsGuestSession( 89 bool TestExtensionsBrowserClient::IsGuestSession(
89 BrowserContext* context) const { 90 BrowserContext* context) const {
90 return false; 91 return false;
91 } 92 }
92 93
93 bool TestExtensionsBrowserClient::IsExtensionIncognitoEnabled( 94 bool TestExtensionsBrowserClient::IsExtensionIncognitoEnabled(
94 const std::string& extension_id, 95 const std::string& extension_id,
95 content::BrowserContext* context) const { 96 content::BrowserContext* context) const {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 193
193 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() { 194 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() {
194 return true; 195 return true;
195 } 196 }
196 197
197 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported( 198 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported(
198 const std::string& min_version) { 199 const std::string& min_version) {
199 return true; 200 return true;
200 } 201 }
201 202
203 void TestExtensionsBrowserClient::SaveImageDataToClipboard(
204 const std::vector<char>& image_data,
205 const clipboard::ImageType type,
206 const base::Closure& success_callback,
207 const base::Closure& error_callback) {}
208
202 ExtensionWebContentsObserver* 209 ExtensionWebContentsObserver*
203 TestExtensionsBrowserClient::GetExtensionWebContentsObserver( 210 TestExtensionsBrowserClient::GetExtensionWebContentsObserver(
204 content::WebContents* web_contents) { 211 content::WebContents* web_contents) {
205 return nullptr; 212 return nullptr;
206 } 213 }
207 214
208 KioskDelegate* TestExtensionsBrowserClient::GetKioskDelegate() { 215 KioskDelegate* TestExtensionsBrowserClient::GetKioskDelegate() {
209 return nullptr; 216 return nullptr;
210 } 217 }
211 218
212 scoped_refptr<update_client::UpdateClient> 219 scoped_refptr<update_client::UpdateClient>
213 TestExtensionsBrowserClient::CreateUpdateClient( 220 TestExtensionsBrowserClient::CreateUpdateClient(
214 content::BrowserContext* context) { 221 content::BrowserContext* context) {
215 return update_client_factory_.is_null() 222 return update_client_factory_.is_null()
216 ? nullptr 223 ? nullptr
217 : make_scoped_refptr(update_client_factory_.Run()); 224 : make_scoped_refptr(update_client_factory_.Run());
218 } 225 }
219 226
220 } // namespace extensions 227 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698