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

Side by Side Diff: chrome/browser/ui/bookmarks/enhanced_bookmark_key_service_factory.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ui/bookmarks/enhanced_bookmark_key_service_factory.h" 5 #include "chrome/browser/ui/bookmarks/enhanced_bookmark_key_service_factory.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "chrome/browser/profiles/incognito_helpers.h" 8 #include "chrome/browser/profiles/incognito_helpers.h"
9 #include "chrome/browser/ui/bookmarks/enhanced_bookmark_key_service.h" 9 #include "chrome/browser/ui/bookmarks/enhanced_bookmark_key_service.h"
10 #include "components/keyed_service/content/browser_context_dependency_manager.h" 10 #include "components/keyed_service/content/browser_context_dependency_manager.h"
11 11
12 // static 12 // static
13 EnhancedBookmarkKeyServiceFactory* 13 EnhancedBookmarkKeyServiceFactory*
14 EnhancedBookmarkKeyServiceFactory::GetInstance() { 14 EnhancedBookmarkKeyServiceFactory::GetInstance() {
15 return Singleton<EnhancedBookmarkKeyServiceFactory>::get(); 15 return base::Singleton<EnhancedBookmarkKeyServiceFactory>::get();
16 } 16 }
17 17
18 EnhancedBookmarkKeyServiceFactory::EnhancedBookmarkKeyServiceFactory() 18 EnhancedBookmarkKeyServiceFactory::EnhancedBookmarkKeyServiceFactory()
19 : BrowserContextKeyedServiceFactory( 19 : BrowserContextKeyedServiceFactory(
20 "EnhancedBookmarkKeyService", 20 "EnhancedBookmarkKeyService",
21 BrowserContextDependencyManager::GetInstance()) { 21 BrowserContextDependencyManager::GetInstance()) {
22 } 22 }
23 23
24 EnhancedBookmarkKeyServiceFactory::~EnhancedBookmarkKeyServiceFactory() { 24 EnhancedBookmarkKeyServiceFactory::~EnhancedBookmarkKeyServiceFactory() {
25 } 25 }
(...skipping 10 matching lines...) Expand all
36 } 36 }
37 37
38 bool EnhancedBookmarkKeyServiceFactory::ServiceIsCreatedWithBrowserContext() 38 bool EnhancedBookmarkKeyServiceFactory::ServiceIsCreatedWithBrowserContext()
39 const { 39 const {
40 return true; 40 return true;
41 } 41 }
42 42
43 bool EnhancedBookmarkKeyServiceFactory::ServiceIsNULLWhileTesting() const { 43 bool EnhancedBookmarkKeyServiceFactory::ServiceIsNULLWhileTesting() const {
44 return true; 44 return true;
45 } 45 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/bookmarks/enhanced_bookmark_key_service_factory.h ('k') | chrome/browser/ui/cocoa/accelerators_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698