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

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

Issue 1035263002: Add service registration for Mojo services defined under chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync with master. Created 5 years, 8 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 ExtensionSystemProvider* 154 ExtensionSystemProvider*
155 TestExtensionsBrowserClient::GetExtensionSystemFactory() { 155 TestExtensionsBrowserClient::GetExtensionSystemFactory() {
156 DCHECK(extension_system_factory_); 156 DCHECK(extension_system_factory_);
157 return extension_system_factory_; 157 return extension_system_factory_;
158 } 158 }
159 159
160 void TestExtensionsBrowserClient::RegisterExtensionFunctions( 160 void TestExtensionsBrowserClient::RegisterExtensionFunctions(
161 ExtensionFunctionRegistry* registry) const {} 161 ExtensionFunctionRegistry* registry) const {}
162 162
163 void TestExtensionsBrowserClient::RegisterMojoServices(
164 content::RenderFrameHost* render_frame_host,
165 const Extension* extension) const {
166 }
167
163 scoped_ptr<RuntimeAPIDelegate> 168 scoped_ptr<RuntimeAPIDelegate>
164 TestExtensionsBrowserClient::CreateRuntimeAPIDelegate( 169 TestExtensionsBrowserClient::CreateRuntimeAPIDelegate(
165 content::BrowserContext* context) const { 170 content::BrowserContext* context) const {
166 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate()); 171 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate());
167 } 172 }
168 173
169 const ComponentExtensionResourceManager* 174 const ComponentExtensionResourceManager*
170 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() { 175 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() {
171 return NULL; 176 return NULL;
172 } 177 }
(...skipping 14 matching lines...) Expand all
187 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() { 192 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() {
188 return true; 193 return true;
189 } 194 }
190 195
191 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported( 196 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported(
192 const std::string& min_version) { 197 const std::string& min_version) {
193 return true; 198 return true;
194 } 199 }
195 200
196 } // namespace extensions 201 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/test_extensions_browser_client.h ('k') | extensions/shell/browser/shell_extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698