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

Side by Side Diff: chrome/browser/enhanced_bookmarks/bookmark_server_cluster_service_factory.cc

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/enhanced_bookmarks/bookmark_server_cluster_service_fact ory.h" 5 #include "chrome/browser/enhanced_bookmarks/bookmark_server_cluster_service_fact ory.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/enhanced_bookmarks/enhanced_bookmark_model_factory.h" 10 #include "chrome/browser/enhanced_bookmarks/enhanced_bookmark_model_factory.h"
11 #include "chrome/browser/profiles/incognito_helpers.h" 11 #include "chrome/browser/profiles/incognito_helpers.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
14 #include "chrome/browser/signin/signin_manager_factory.h" 14 #include "chrome/browser/signin/signin_manager_factory.h"
15 #include "chrome/browser/sync/profile_sync_service.h"
16 #include "chrome/browser/sync/profile_sync_service_factory.h" 15 #include "chrome/browser/sync/profile_sync_service_factory.h"
16 #include "components/browser_sync/browser/profile_sync_service.h"
17 #include "components/enhanced_bookmarks/bookmark_server_cluster_service.h" 17 #include "components/enhanced_bookmarks/bookmark_server_cluster_service.h"
18 #include "components/keyed_service/content/browser_context_dependency_manager.h" 18 #include "components/keyed_service/content/browser_context_dependency_manager.h"
19 #include "components/signin/core/browser/signin_manager.h" 19 #include "components/signin/core/browser/signin_manager.h"
20 20
21 namespace enhanced_bookmarks { 21 namespace enhanced_bookmarks {
22 22
23 BookmarkServerClusterServiceFactory::BookmarkServerClusterServiceFactory() 23 BookmarkServerClusterServiceFactory::BookmarkServerClusterServiceFactory()
24 : BrowserContextKeyedServiceFactory( 24 : BrowserContextKeyedServiceFactory(
25 "BookmarkServerClusterService", 25 "BookmarkServerClusterService",
26 BrowserContextDependencyManager::GetInstance()) { 26 BrowserContextDependencyManager::GetInstance()) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 ProfileSyncServiceFactory::GetForProfile(profile), profile->GetPrefs()); 62 ProfileSyncServiceFactory::GetForProfile(profile), profile->GetPrefs());
63 } 63 }
64 64
65 content::BrowserContext* 65 content::BrowserContext*
66 BookmarkServerClusterServiceFactory::GetBrowserContextToUse( 66 BookmarkServerClusterServiceFactory::GetBrowserContextToUse(
67 content::BrowserContext* context) const { 67 content::BrowserContext* context) const {
68 return chrome::GetBrowserContextRedirectedInIncognito(context); 68 return chrome::GetBrowserContextRedirectedInIncognito(context);
69 } 69 }
70 70
71 } // namespace enhanced_bookmarks 71 } // namespace enhanced_bookmarks
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698