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

Side by Side Diff: extensions/shell/browser/shell_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/shell/browser/shell_extensions_browser_client.h ('k') | no next file » | 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/shell/browser/shell_extensions_browser_client.h" 5 #include "extensions/shell/browser/shell_extensions_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 160 }
161 161
162 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { 162 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() {
163 return false; 163 return false;
164 } 164 }
165 165
166 bool ShellExtensionsBrowserClient::IsLoggedInAsPublicAccount() { 166 bool ShellExtensionsBrowserClient::IsLoggedInAsPublicAccount() {
167 return false; 167 return false;
168 } 168 }
169 169
170 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor(
171 BrowserContext* context) {
172 // app_shell doesn't monitor API function calls or events.
173 return NULL;
174 }
175
176 ExtensionSystemProvider* 170 ExtensionSystemProvider*
177 ShellExtensionsBrowserClient::GetExtensionSystemFactory() { 171 ShellExtensionsBrowserClient::GetExtensionSystemFactory() {
178 return ShellExtensionSystemFactory::GetInstance(); 172 return ShellExtensionSystemFactory::GetInstance();
179 } 173 }
180 174
181 void ShellExtensionsBrowserClient::RegisterExtensionFunctions( 175 void ShellExtensionsBrowserClient::RegisterExtensionFunctions(
182 ExtensionFunctionRegistry* registry) const { 176 ExtensionFunctionRegistry* registry) const {
183 // Register core extension-system APIs. 177 // Register core extension-system APIs.
184 api::GeneratedFunctionRegistry::RegisterAll(registry); 178 api::GeneratedFunctionRegistry::RegisterAll(registry);
185 179
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 api_client_.reset(api_client); 238 api_client_.reset(api_client);
245 } 239 }
246 240
247 ExtensionWebContentsObserver* 241 ExtensionWebContentsObserver*
248 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( 242 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver(
249 content::WebContents* web_contents) { 243 content::WebContents* web_contents) {
250 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); 244 return ShellExtensionWebContentsObserver::FromWebContents(web_contents);
251 } 245 }
252 246
253 } // namespace extensions 247 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_extensions_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698