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

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

Issue 830833002: Makes GetComponentExtensionResourceManager() thread-safe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 11 months 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 "content/public/browser/browser_context.h" 7 #include "content/public/browser/browser_context.h"
8 #include "extensions/browser/app_sorting.h" 8 #include "extensions/browser/app_sorting.h"
9 #include "extensions/browser/extension_host_delegate.h" 9 #include "extensions/browser/extension_host_delegate.h"
10 #include "extensions/browser/test_runtime_api_delegate.h" 10 #include "extensions/browser/test_runtime_api_delegate.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 void TestExtensionsBrowserClient::RegisterExtensionFunctions( 153 void TestExtensionsBrowserClient::RegisterExtensionFunctions(
154 ExtensionFunctionRegistry* registry) const {} 154 ExtensionFunctionRegistry* registry) const {}
155 155
156 scoped_ptr<RuntimeAPIDelegate> 156 scoped_ptr<RuntimeAPIDelegate>
157 TestExtensionsBrowserClient::CreateRuntimeAPIDelegate( 157 TestExtensionsBrowserClient::CreateRuntimeAPIDelegate(
158 content::BrowserContext* context) const { 158 content::BrowserContext* context) const {
159 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate()); 159 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate());
160 } 160 }
161 161
162 ComponentExtensionResourceManager* 162 const ComponentExtensionResourceManager*
163 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() { 163 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() {
164 return NULL; 164 return NULL;
165 } 165 }
166 166
167 void TestExtensionsBrowserClient::BroadcastEventToRenderers( 167 void TestExtensionsBrowserClient::BroadcastEventToRenderers(
168 const std::string& event_name, 168 const std::string& event_name,
169 scoped_ptr<base::ListValue> args) { 169 scoped_ptr<base::ListValue> args) {
170 } 170 }
171 171
172 net::NetLog* TestExtensionsBrowserClient::GetNetLog() { 172 net::NetLog* TestExtensionsBrowserClient::GetNetLog() {
173 return NULL; 173 return NULL;
174 } 174 }
175 175
176 ExtensionCache* TestExtensionsBrowserClient::GetExtensionCache() { 176 ExtensionCache* TestExtensionsBrowserClient::GetExtensionCache() {
177 return extension_cache_.get(); 177 return extension_cache_.get();
178 } 178 }
179 179
180 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() { 180 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() {
181 return true; 181 return true;
182 } 182 }
183 183
184 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported( 184 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported(
185 const std::string& min_version) { 185 const std::string& min_version) {
186 return true; 186 return true;
187 } 187 }
188 188
189 } // namespace extensions 189 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698