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

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

Issue 10201016: Conflict detection for Extension Keybinding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/extension_command_service_factory.h"
6
7 #include "chrome/browser/profiles/profile_dependency_manager.h"
8 #include "chrome/browser/extensions/extension_command_service.h"
9
10 // static
11 ExtensionCommandService* ExtensionCommandServiceFactory::GetForProfile(
12 Profile* profile) {
13 return static_cast<ExtensionCommandService*>(
14 GetInstance()->GetServiceForProfile(profile, true));
15 }
16
17 // static
18 ExtensionCommandServiceFactory* ExtensionCommandServiceFactory::GetInstance() {
19 return Singleton<ExtensionCommandServiceFactory>::get();
20 }
21
22 bool ExtensionCommandServiceFactory::ServiceIsCreatedWithProfile() {
23 return true;
24 }
Finnur 2012/04/30 09:28:37 Thanks for the tip, Yoyo. This change means there
25
26 ExtensionCommandServiceFactory::ExtensionCommandServiceFactory()
27 : ProfileKeyedServiceFactory("ExtensionCommandService",
28 ProfileDependencyManager::GetInstance()) {
Yoyo Zhou 2012/05/01 01:51:30 DependsOn would go here.
29 }
30
31 ExtensionCommandServiceFactory::~ExtensionCommandServiceFactory() {
32 }
33
34 ProfileKeyedService* ExtensionCommandServiceFactory::BuildServiceInstanceFor(
35 Profile* profile) const {
36 return new ExtensionCommandService(profile);
37 }
38
39 bool ExtensionCommandServiceFactory::ServiceRedirectedInIncognito() {
40 return true;
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698