| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |