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

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

Issue 9977021: Add ExtensionSytem::Get(Profile*) as a wrapper around (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/extension_system_factory.h" 5 #include "chrome/browser/extensions/extension_system_factory.h"
6 6
7 #include "chrome/browser/extensions/extension_message_service.h" 7 #include "chrome/browser/extensions/extension_message_service.h"
8 #include "chrome/browser/extensions/extension_prefs.h" 8 #include "chrome/browser/extensions/extension_prefs.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_system.h" 10 #include "chrome/browser/extensions/extension_system.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 return new ExtensionSystemImpl::Shared(profile); 45 return new ExtensionSystemImpl::Shared(profile);
46 } 46 }
47 47
48 bool ExtensionSystemSharedFactory::ServiceRedirectedInIncognito() { 48 bool ExtensionSystemSharedFactory::ServiceRedirectedInIncognito() {
49 return true; 49 return true;
50 } 50 }
51 51
52 // ExtensionSystemFactory 52 // ExtensionSystemFactory
53 53
54 // static 54 // static
55 ExtensionSystem* ExtensionSystemFactory::GetForProfile( 55 ExtensionSystem* ExtensionSystemFactory::GetForProfile(Profile* profile) {
56 Profile* profile) {
57 return static_cast<ExtensionSystem*>( 56 return static_cast<ExtensionSystem*>(
58 GetInstance()->GetServiceForProfile(profile, true)); 57 GetInstance()->GetServiceForProfile(profile, true));
59 } 58 }
60 59
61 // static 60 // static
62 ExtensionSystemFactory* ExtensionSystemFactory::GetInstance() { 61 ExtensionSystemFactory* ExtensionSystemFactory::GetInstance() {
63 return Singleton<ExtensionSystemFactory>::get(); 62 return Singleton<ExtensionSystemFactory>::get();
64 } 63 }
65 64
66 ExtensionSystemFactory::ExtensionSystemFactory() 65 ExtensionSystemFactory::ExtensionSystemFactory()
(...skipping 11 matching lines...) Expand all
78 return new ExtensionSystemImpl(profile); 77 return new ExtensionSystemImpl(profile);
79 } 78 }
80 79
81 bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() { 80 bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() {
82 return true; 81 return true;
83 } 82 }
84 83
85 bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() { 84 bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() {
86 return true; 85 return true;
87 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698