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

Side by Side Diff: chrome/browser/extensions/shell_window_registry.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/browser_process.h" 5 #include "chrome/browser/browser_process.h"
6 #include "chrome/browser/extensions/shell_window_registry.h" 6 #include "chrome/browser/extensions/shell_window_registry.h"
7 #include "chrome/browser/profiles/profile_dependency_manager.h" 7 #include "chrome/browser/profiles/profile_dependency_manager.h"
8 #include "chrome/browser/profiles/profile_manager.h" 8 #include "chrome/browser/profiles/profile_manager.h"
9 #include "chrome/browser/ui/extensions/native_app_window.h" 9 #include "chrome/browser/ui/extensions/native_app_window.h"
10 #include "chrome/browser/ui/extensions/shell_window.h" 10 #include "chrome/browser/ui/extensions/shell_window.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 ShellWindowRegistry::Factory::Factory() 235 ShellWindowRegistry::Factory::Factory()
236 : ProfileKeyedServiceFactory("ShellWindowRegistry", 236 : ProfileKeyedServiceFactory("ShellWindowRegistry",
237 ProfileDependencyManager::GetInstance()) { 237 ProfileDependencyManager::GetInstance()) {
238 } 238 }
239 239
240 ShellWindowRegistry::Factory::~Factory() { 240 ShellWindowRegistry::Factory::~Factory() {
241 } 241 }
242 242
243 ProfileKeyedService* ShellWindowRegistry::Factory::BuildServiceInstanceFor( 243 ProfileKeyedService* ShellWindowRegistry::Factory::BuildServiceInstanceFor(
244 Profile* profile) const { 244 content::BrowserContext* profile) const {
245 return new ShellWindowRegistry(profile); 245 return new ShellWindowRegistry(static_cast<Profile*>(profile));
246 } 246 }
247 247
248 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() const { 248 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() const {
249 return true; 249 return true;
250 } 250 }
251 251
252 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() const { 252 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() const {
253 return false; 253 return false;
254 } 254 }
255 255
256 } // namespace extensions 256 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698