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" |
11 | 11 |
12 using content::BrowserContext; | 12 using content::BrowserContext; |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 TestExtensionsBrowserClient::TestExtensionsBrowserClient( | 16 TestExtensionsBrowserClient::TestExtensionsBrowserClient( |
17 BrowserContext* main_context) | 17 BrowserContext* main_context) |
18 : main_context_(main_context), | 18 : main_context_(main_context), |
19 incognito_context_(NULL), | 19 incognito_context_(NULL), |
20 process_manager_delegate_(NULL) { | 20 process_manager_delegate_(NULL), |
| 21 extension_system_factory_(NULL) { |
21 DCHECK(main_context_); | 22 DCHECK(main_context_); |
22 DCHECK(!main_context_->IsOffTheRecord()); | 23 DCHECK(!main_context_->IsOffTheRecord()); |
23 } | 24 } |
24 | 25 |
25 TestExtensionsBrowserClient::~TestExtensionsBrowserClient() {} | 26 TestExtensionsBrowserClient::~TestExtensionsBrowserClient() {} |
26 | 27 |
27 void TestExtensionsBrowserClient::SetIncognitoContext(BrowserContext* context) { | 28 void TestExtensionsBrowserClient::SetIncognitoContext(BrowserContext* context) { |
28 // If a context is provided it must be off-the-record. | 29 // If a context is provided it must be off-the-record. |
29 DCHECK(!context || context->IsOffTheRecord()); | 30 DCHECK(!context || context->IsOffTheRecord()); |
30 incognito_context_ = context; | 31 incognito_context_ = context; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 ComponentExtensionResourceManager* | 165 ComponentExtensionResourceManager* |
165 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() { | 166 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() { |
166 return NULL; | 167 return NULL; |
167 } | 168 } |
168 | 169 |
169 net::NetLog* TestExtensionsBrowserClient::GetNetLog() { | 170 net::NetLog* TestExtensionsBrowserClient::GetNetLog() { |
170 return NULL; | 171 return NULL; |
171 } | 172 } |
172 | 173 |
173 } // namespace extensions | 174 } // namespace extensions |
OLD | NEW |