OLD | NEW |
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 Loading... |
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 |
OLD | NEW |