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

Side by Side Diff: chrome/browser/platform_apps/platform_app_service_factory.cc

Issue 11293087: Create a new chrome/browser/apps folder and move PlatformAppService there. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apps -> platform_apps Created 8 years, 1 month 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698