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

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

Issue 2379573008: Add SetImageData api to chrome.clipboard. (Closed)
Patch Set: Add a warning in clipboard.idl about the future deprecation plan. Created 4 years 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
87 void TestExtensionsBrowserClient::SaveImageDataToClipboard(
88 const std::vector<char>& image_data,
89 const api::clipboard::ImageType type,
90 const base::Closure& success_callback,
91 const ErrorCallback& error_callback) {}
86 #endif 92 #endif
87 93
88 bool TestExtensionsBrowserClient::IsGuestSession( 94 bool TestExtensionsBrowserClient::IsGuestSession(
89 BrowserContext* context) const { 95 BrowserContext* context) const {
90 return false; 96 return false;
91 } 97 }
92 98
93 bool TestExtensionsBrowserClient::IsExtensionIncognitoEnabled( 99 bool TestExtensionsBrowserClient::IsExtensionIncognitoEnabled(
94 const std::string& extension_id, 100 const std::string& extension_id,
95 content::BrowserContext* context) const { 101 content::BrowserContext* context) const {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698