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

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

Issue 10704023: Moved ExtensionPrefs and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest-er master merged in Created 8 years, 5 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 (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 "chrome/browser/extensions/api/alarms/alarm_manager.h" 7 #include "chrome/browser/extensions/api/alarms/alarm_manager.h"
8 #include "chrome/browser/extensions/extension_devtools_manager.h" 8 #include "chrome/browser/extensions/extension_devtools_manager.h"
9 #include "chrome/browser/extensions/extension_event_router.h" 9 #include "chrome/browser/extensions/extension_event_router.h"
10 #include "chrome/browser/extensions/extension_info_map.h" 10 #include "chrome/browser/extensions/extension_info_map.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const FilePath& install_directory, 47 const FilePath& install_directory,
48 bool autoupdate_enabled) { 48 bool autoupdate_enabled) {
49 bool extensions_disabled = 49 bool extensions_disabled =
50 command_line && command_line->HasSwitch(switches::kDisableExtensions); 50 command_line && command_line->HasSwitch(switches::kDisableExtensions);
51 51
52 // Note that the GetPrefs() creates a TestingPrefService, therefore 52 // Note that the GetPrefs() creates a TestingPrefService, therefore
53 // the extension controlled pref values set in extension_prefs_ 53 // the extension controlled pref values set in extension_prefs_
54 // are not reflected in the pref service. One would need to 54 // are not reflected in the pref service. One would need to
55 // inject a new ExtensionPrefStore(extension_pref_value_map, false). 55 // inject a new ExtensionPrefStore(extension_pref_value_map, false).
56 56
57 extension_prefs_.reset(new ExtensionPrefs( 57 extension_prefs_.reset(new extensions::ExtensionPrefs(
58 profile_->GetPrefs(), 58 profile_->GetPrefs(),
59 install_directory, 59 install_directory,
60 ExtensionPrefValueMapFactory::GetForProfile(profile_))); 60 ExtensionPrefValueMapFactory::GetForProfile(profile_)));
61 state_store_.reset(new extensions::StateStore( 61 state_store_.reset(new extensions::StateStore(
62 profile_, 62 profile_,
63 new TestingValueStore())); 63 new TestingValueStore()));
64 extension_prefs_->Init(extensions_disabled); 64 extension_prefs_->Init(extensions_disabled);
65 extension_service_.reset(new ExtensionService(profile_, 65 extension_service_.reset(new ExtensionService(profile_,
66 command_line, 66 command_line,
67 install_directory, 67 install_directory,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 extensions::RulesRegistryService* 131 extensions::RulesRegistryService*
132 TestExtensionSystem::rules_registry_service() { 132 TestExtensionSystem::rules_registry_service() {
133 return NULL; 133 return NULL;
134 } 134 }
135 135
136 // static 136 // static
137 ProfileKeyedService* TestExtensionSystem::Build(Profile* profile) { 137 ProfileKeyedService* TestExtensionSystem::Build(Profile* profile) {
138 return new TestExtensionSystem(profile); 138 return new TestExtensionSystem(profile);
139 } 139 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_system.h ('k') | chrome/browser/extensions/updater/extension_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698