| 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/extensions/platform_app_service_factory.h" | 5 #include "chrome/browser/platform_apps/platform_app_service_factory.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile_dependency_manager.h" | 7 #include "chrome/browser/profiles/profile_dependency_manager.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace platform_apps { |
| 10 | 10 |
| 11 // static | 11 // static |
| 12 PlatformAppService* PlatformAppServiceFactory::GetForProfile( | 12 PlatformAppService* PlatformAppServiceFactory::GetForProfile( |
| 13 Profile* profile) { | 13 Profile* profile) { |
| 14 return static_cast<PlatformAppService*>( | 14 return static_cast<PlatformAppService*>( |
| 15 GetInstance()->GetServiceForProfile(profile, true)); | 15 GetInstance()->GetServiceForProfile(profile, true)); |
| 16 } | 16 } |
| 17 | 17 |
| 18 PlatformAppServiceFactory* PlatformAppServiceFactory::GetInstance() { | 18 PlatformAppServiceFactory* PlatformAppServiceFactory::GetInstance() { |
| 19 return Singleton<PlatformAppServiceFactory>::get(); | 19 return Singleton<PlatformAppServiceFactory>::get(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 | 38 |
| 39 bool PlatformAppServiceFactory::ServiceIsCreatedWithProfile() const { | 39 bool PlatformAppServiceFactory::ServiceIsCreatedWithProfile() const { |
| 40 return true; | 40 return true; |
| 41 } | 41 } |
| 42 | 42 |
| 43 bool PlatformAppServiceFactory::ServiceIsNULLWhileTesting() const { | 43 bool PlatformAppServiceFactory::ServiceIsNULLWhileTesting() const { |
| 44 return false; | 44 return false; |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace extensions | 47 } // namespace platform_apps |
| OLD | NEW |