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

Side by Side Diff: chrome/browser/extensions/api/chrome_extensions_api_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
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 "chrome/browser/extensions/api/chrome_extensions_api_client.h" 5 #include "chrome/browser/extensions/api/chrome_extensions_api_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 WebViewGuest* web_view_guest) const { 111 WebViewGuest* web_view_guest) const {
112 return new ChromeWebViewGuestDelegate(web_view_guest); 112 return new ChromeWebViewGuestDelegate(web_view_guest);
113 } 113 }
114 114
115 WebViewPermissionHelperDelegate* ChromeExtensionsAPIClient:: 115 WebViewPermissionHelperDelegate* ChromeExtensionsAPIClient::
116 CreateWebViewPermissionHelperDelegate( 116 CreateWebViewPermissionHelperDelegate(
117 WebViewPermissionHelper* web_view_permission_helper) const { 117 WebViewPermissionHelper* web_view_permission_helper) const {
118 return new ChromeWebViewPermissionHelperDelegate(web_view_permission_helper); 118 return new ChromeWebViewPermissionHelperDelegate(web_view_permission_helper);
119 } 119 }
120 120
121 WebRequestEventRouterDelegate* 121 std::unique_ptr<WebRequestEventRouterDelegate>
122 ChromeExtensionsAPIClient::CreateWebRequestEventRouterDelegate() const { 122 ChromeExtensionsAPIClient::CreateWebRequestEventRouterDelegate() const {
123 return new ChromeExtensionWebRequestEventRouterDelegate(); 123 return base::WrapUnique(new ChromeExtensionWebRequestEventRouterDelegate());
124 } 124 }
125 125
126 scoped_refptr<ContentRulesRegistry> 126 scoped_refptr<ContentRulesRegistry>
127 ChromeExtensionsAPIClient::CreateContentRulesRegistry( 127 ChromeExtensionsAPIClient::CreateContentRulesRegistry(
128 content::BrowserContext* browser_context, 128 content::BrowserContext* browser_context,
129 RulesCacheDelegate* cache_delegate) const { 129 RulesCacheDelegate* cache_delegate) const {
130 return scoped_refptr<ContentRulesRegistry>( 130 return scoped_refptr<ContentRulesRegistry>(
131 new ChromeContentRulesRegistry( 131 new ChromeContentRulesRegistry(
132 browser_context, 132 browser_context,
133 cache_delegate, 133 cache_delegate,
(...skipping 15 matching lines...) Expand all
149 return nullptr; 149 return nullptr;
150 #endif 150 #endif
151 } 151 }
152 152
153 ManagementAPIDelegate* ChromeExtensionsAPIClient::CreateManagementAPIDelegate() 153 ManagementAPIDelegate* ChromeExtensionsAPIClient::CreateManagementAPIDelegate()
154 const { 154 const {
155 return new ChromeManagementAPIDelegate; 155 return new ChromeManagementAPIDelegate;
156 } 156 }
157 157
158 } // namespace extensions 158 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698