| 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 | 11 |
| 11 using content::BrowserContext; | 12 using content::BrowserContext; |
| 12 | 13 |
| 13 namespace extensions { | 14 namespace extensions { |
| 14 | 15 |
| 15 TestExtensionsBrowserClient::TestExtensionsBrowserClient( | 16 TestExtensionsBrowserClient::TestExtensionsBrowserClient( |
| 16 BrowserContext* main_context) | 17 BrowserContext* main_context) |
| 17 : main_context_(main_context), incognito_context_(NULL) { | 18 : main_context_(main_context), incognito_context_(NULL) { |
| 18 DCHECK(main_context_); | 19 DCHECK(main_context_); |
| 19 DCHECK(!main_context_->IsOffTheRecord()); | 20 DCHECK(!main_context_->IsOffTheRecord()); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 ExtensionSystemProvider* | 149 ExtensionSystemProvider* |
| 149 TestExtensionsBrowserClient::GetExtensionSystemFactory() { | 150 TestExtensionsBrowserClient::GetExtensionSystemFactory() { |
| 150 // Tests requiring an extension system should override this function. | 151 // Tests requiring an extension system should override this function. |
| 151 NOTREACHED(); | 152 NOTREACHED(); |
| 152 return NULL; | 153 return NULL; |
| 153 } | 154 } |
| 154 | 155 |
| 155 void TestExtensionsBrowserClient::RegisterExtensionFunctions( | 156 void TestExtensionsBrowserClient::RegisterExtensionFunctions( |
| 156 ExtensionFunctionRegistry* registry) const {} | 157 ExtensionFunctionRegistry* registry) const {} |
| 157 | 158 |
| 159 scoped_ptr<RuntimeAPIDelegate> |
| 160 TestExtensionsBrowserClient::CreateRuntimeAPIDelegate( |
| 161 content::BrowserContext* context) const { |
| 162 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate()); |
| 163 } |
| 164 |
| 158 } // namespace extensions | 165 } // namespace extensions |
| OLD | NEW |