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

Side by Side Diff: chrome/browser/extensions/test_extension_system.cc

Issue 11415216: Make Blacklist::IsBlacklist asynchronous (it will need to be for safe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another test Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/extensions/test_extension_system.h" 5 #include "chrome/browser/extensions/test_extension_system.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/extensions/api/alarms/alarm_manager.h" 8 #include "chrome/browser/extensions/api/alarms/alarm_manager.h"
9 #include "chrome/browser/extensions/api/messaging/message_service.h" 9 #include "chrome/browser/extensions/api/messaging/message_service.h"
10 #include "chrome/browser/extensions/blacklist.h" 10 #include "chrome/browser/extensions/blacklist.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 extension_prefs_ = ExtensionPrefs::Create( 77 extension_prefs_ = ExtensionPrefs::Create(
78 profile_->GetPrefs(), 78 profile_->GetPrefs(),
79 install_directory, 79 install_directory,
80 ExtensionPrefValueMapFactory::GetForProfile(profile_), 80 ExtensionPrefValueMapFactory::GetForProfile(profile_),
81 extensions_disabled); 81 extensions_disabled);
82 state_store_.reset(new StateStore(profile_, new TestingValueStore())); 82 state_store_.reset(new StateStore(profile_, new TestingValueStore()));
83 shell_window_geometry_cache_.reset( 83 shell_window_geometry_cache_.reset(
84 new ShellWindowGeometryCache(profile_, state_store_.get())); 84 new ShellWindowGeometryCache(profile_, state_store_.get()));
85 blacklist_.reset(new Blacklist(extension_prefs_.get())); 85 blacklist_.reset(new Blacklist(extension_prefs_.get()));
86 standard_management_policy_provider_.reset( 86 standard_management_policy_provider_.reset(
87 new StandardManagementPolicyProvider(extension_prefs_.get(), 87 new StandardManagementPolicyProvider(extension_prefs_.get()));
88 blacklist_.get()));
89 management_policy_.reset(new ManagementPolicy()); 88 management_policy_.reset(new ManagementPolicy());
90 management_policy_->RegisterProvider( 89 management_policy_->RegisterProvider(
91 standard_management_policy_provider_.get()); 90 standard_management_policy_provider_.get());
92 extension_service_.reset(new ExtensionService(profile_, 91 extension_service_.reset(new ExtensionService(profile_,
93 command_line, 92 command_line,
94 install_directory, 93 install_directory,
95 extension_prefs_.get(), 94 extension_prefs_.get(),
96 blacklist_.get(), 95 blacklist_.get(),
97 autoupdate_enabled, 96 autoupdate_enabled,
98 true)); 97 true));
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 Blacklist* TestExtensionSystem::blacklist() { 177 Blacklist* TestExtensionSystem::blacklist() {
179 return blacklist_.get(); 178 return blacklist_.get();
180 } 179 }
181 180
182 // static 181 // static
183 ProfileKeyedService* TestExtensionSystem::Build(Profile* profile) { 182 ProfileKeyedService* TestExtensionSystem::Build(Profile* profile) {
184 return new TestExtensionSystem(profile); 183 return new TestExtensionSystem(profile);
185 } 184 }
186 185
187 } // namespace extensions 186 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_system.h ('k') | chrome/browser/extensions/updater/extension_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698