| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |