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

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

Issue 2077723002: [Extensions] Short-circuit activity logging if not enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Test Created 4 years, 6 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
« no previous file with comments | « extensions/browser/test_extensions_browser_client.h ('k') | extensions/extensions.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 void TestExtensionsBrowserClient::PermitExternalProtocolHandler() { 146 void TestExtensionsBrowserClient::PermitExternalProtocolHandler() {
147 } 147 }
148 148
149 bool TestExtensionsBrowserClient::IsRunningInForcedAppMode() { return false; } 149 bool TestExtensionsBrowserClient::IsRunningInForcedAppMode() { return false; }
150 150
151 bool TestExtensionsBrowserClient::IsLoggedInAsPublicAccount() { 151 bool TestExtensionsBrowserClient::IsLoggedInAsPublicAccount() {
152 return false; 152 return false;
153 } 153 }
154 154
155 ApiActivityMonitor* TestExtensionsBrowserClient::GetApiActivityMonitor(
156 BrowserContext* context) {
157 return NULL;
158 }
159
160 ExtensionSystemProvider* 155 ExtensionSystemProvider*
161 TestExtensionsBrowserClient::GetExtensionSystemFactory() { 156 TestExtensionsBrowserClient::GetExtensionSystemFactory() {
162 DCHECK(extension_system_factory_); 157 DCHECK(extension_system_factory_);
163 return extension_system_factory_; 158 return extension_system_factory_;
164 } 159 }
165 160
166 void TestExtensionsBrowserClient::RegisterExtensionFunctions( 161 void TestExtensionsBrowserClient::RegisterExtensionFunctions(
167 ExtensionFunctionRegistry* registry) const {} 162 ExtensionFunctionRegistry* registry) const {}
168 163
169 void TestExtensionsBrowserClient::RegisterMojoServices( 164 void TestExtensionsBrowserClient::RegisterMojoServices(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 207
213 scoped_refptr<update_client::UpdateClient> 208 scoped_refptr<update_client::UpdateClient>
214 TestExtensionsBrowserClient::CreateUpdateClient( 209 TestExtensionsBrowserClient::CreateUpdateClient(
215 content::BrowserContext* context) { 210 content::BrowserContext* context) {
216 return update_client_factory_.is_null() 211 return update_client_factory_.is_null()
217 ? nullptr 212 ? nullptr
218 : make_scoped_refptr(update_client_factory_.Run()); 213 : make_scoped_refptr(update_client_factory_.Run());
219 } 214 }
220 215
221 } // namespace extensions 216 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/test_extensions_browser_client.h ('k') | extensions/extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698