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

Side by Side Diff: chrome/browser/sync/glue/sync_start_util.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/sync/glue/sync_start_util.h" 5 #include "chrome/browser/sync/glue/sync_start_util.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/profiles/profile_manager.h" 11 #include "chrome/browser/profiles/profile_manager.h"
12 #include "chrome/browser/sync/profile_sync_service.h"
13 #include "chrome/browser/sync/profile_sync_service_factory.h" 12 #include "chrome/browser/sync/profile_sync_service_factory.h"
13 #include "components/browser_sync/browser/profile_sync_service.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 15
16 namespace { 16 namespace {
17 17
18 void StartSyncOnUIThread(const base::FilePath& profile, 18 void StartSyncOnUIThread(const base::FilePath& profile,
19 syncer::ModelType type) { 19 syncer::ModelType type) {
20 ProfileManager* profile_manager = g_browser_process->profile_manager(); 20 ProfileManager* profile_manager = g_browser_process->profile_manager();
21 if (!profile_manager) { 21 if (!profile_manager) {
22 // Can happen in tests. 22 // Can happen in tests.
23 DVLOG(2) << "No ProfileManager, can't start sync."; 23 DVLOG(2) << "No ProfileManager, can't start sync.";
(...skipping 24 matching lines...) Expand all
48 } // namespace 48 } // namespace
49 49
50 namespace sync_start_util { 50 namespace sync_start_util {
51 51
52 syncer::SyncableService::StartSyncFlare GetFlareForSyncableService( 52 syncer::SyncableService::StartSyncFlare GetFlareForSyncableService(
53 const base::FilePath& profile_path) { 53 const base::FilePath& profile_path) {
54 return base::Bind(&StartSyncProxy, profile_path); 54 return base::Bind(&StartSyncProxy, profile_path);
55 } 55 }
56 56
57 } // namespace sync_start_util 57 } // namespace sync_start_util
OLDNEW
« no previous file with comments | « chrome/browser/sync/chrome_sync_client.cc ('k') | chrome/browser/sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698