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

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

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for review Created 7 years, 8 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 | 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 "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/extensions/api/alarms/alarm_manager.h" 9 #include "chrome/browser/extensions/api/alarms/alarm_manager.h"
10 #include "chrome/browser/extensions/api/location/location_manager.h" 10 #include "chrome/browser/extensions/api/location/location_manager.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 ExtensionWarningService* TestExtensionSystem::warning_service() { 189 ExtensionWarningService* TestExtensionSystem::warning_service() {
190 return NULL; 190 return NULL;
191 } 191 }
192 192
193 Blacklist* TestExtensionSystem::blacklist() { 193 Blacklist* TestExtensionSystem::blacklist() {
194 return blacklist_.get(); 194 return blacklist_.get();
195 } 195 }
196 196
197 // static 197 // static
198 ProfileKeyedService* TestExtensionSystem::Build(Profile* profile) { 198 ProfileKeyedService* TestExtensionSystem::Build(
199 return new TestExtensionSystem(profile); 199 content::BrowserContext* profile) {
200 return new TestExtensionSystem(static_cast<Profile*>(profile));
200 } 201 }
201 202
202 } // namespace extensions 203 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698