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

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

Issue 653623002: Revert "Move ExtensionCache to //extensions" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable AutoEnrollmentClientTest.* and DeviceLocalAccountExternalPolicyLoaderTest.CacheNotStarted te… Created 6 years, 2 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"
11 #include "extensions/browser/updater/null_extension_cache.h"
12 11
13 using content::BrowserContext; 12 using content::BrowserContext;
14 13
15 namespace extensions { 14 namespace extensions {
16 15
17 TestExtensionsBrowserClient::TestExtensionsBrowserClient( 16 TestExtensionsBrowserClient::TestExtensionsBrowserClient(
18 BrowserContext* main_context) 17 BrowserContext* main_context)
19 : main_context_(main_context), 18 : main_context_(main_context),
20 incognito_context_(NULL), 19 incognito_context_(NULL),
21 process_manager_delegate_(NULL), 20 process_manager_delegate_(NULL),
22 extension_system_factory_(NULL), 21 extension_system_factory_(NULL) {
23 extension_cache_(new NullExtensionCache) {
24 DCHECK(main_context_); 22 DCHECK(main_context_);
25 DCHECK(!main_context_->IsOffTheRecord()); 23 DCHECK(!main_context_->IsOffTheRecord());
26 } 24 }
27 25
28 TestExtensionsBrowserClient::~TestExtensionsBrowserClient() {} 26 TestExtensionsBrowserClient::~TestExtensionsBrowserClient() {}
29 27
30 void TestExtensionsBrowserClient::SetIncognitoContext(BrowserContext* context) { 28 void TestExtensionsBrowserClient::SetIncognitoContext(BrowserContext* context) {
31 // If a context is provided it must be off-the-record. 29 // If a context is provided it must be off-the-record.
32 DCHECK(!context || context->IsOffTheRecord()); 30 DCHECK(!context || context->IsOffTheRecord());
33 incognito_context_ = context; 31 incognito_context_ = context;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 164
167 void TestExtensionsBrowserClient::BroadcastEventToRenderers( 165 void TestExtensionsBrowserClient::BroadcastEventToRenderers(
168 const std::string& event_name, 166 const std::string& event_name,
169 scoped_ptr<base::ListValue> args) { 167 scoped_ptr<base::ListValue> args) {
170 } 168 }
171 169
172 net::NetLog* TestExtensionsBrowserClient::GetNetLog() { 170 net::NetLog* TestExtensionsBrowserClient::GetNetLog() {
173 return NULL; 171 return NULL;
174 } 172 }
175 173
176 ExtensionCache* TestExtensionsBrowserClient::GetExtensionCache() {
177 return extension_cache_.get();
178 }
179
180 } // namespace extensions 174 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/test_extensions_browser_client.h ('k') | extensions/browser/updater/extension_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698