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

Side by Side Diff: chrome/browser/sync/glue/sync_start_util.cc

Issue 2830603002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/sync (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/sync/profile_sync_service_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 25 matching lines...) Expand all
36 DVLOG(2) << "No ProfileSyncService for profile, can't start sync."; 36 DVLOG(2) << "No ProfileSyncService for profile, can't start sync.";
37 return; 37 return;
38 } 38 }
39 service->OnDataTypeRequestsSyncStartup(type); 39 service->OnDataTypeRequestsSyncStartup(type);
40 } 40 }
41 41
42 void StartSyncProxy(const base::FilePath& profile, 42 void StartSyncProxy(const base::FilePath& profile,
43 syncer::ModelType type) { 43 syncer::ModelType type) {
44 content::BrowserThread::PostTask( 44 content::BrowserThread::PostTask(
45 content::BrowserThread::UI, FROM_HERE, 45 content::BrowserThread::UI, FROM_HERE,
46 base::Bind(&StartSyncOnUIThread, profile, type)); 46 base::BindOnce(&StartSyncOnUIThread, profile, type));
47 } 47 }
48 48
49 } // namespace 49 } // namespace
50 50
51 namespace sync_start_util { 51 namespace sync_start_util {
52 52
53 syncer::SyncableService::StartSyncFlare GetFlareForSyncableService( 53 syncer::SyncableService::StartSyncFlare GetFlareForSyncableService(
54 const base::FilePath& profile_path) { 54 const base::FilePath& profile_path) {
55 return base::Bind(&StartSyncProxy, profile_path); 55 return base::Bind(&StartSyncProxy, profile_path);
56 } 56 }
57 57
58 } // namespace sync_start_util 58 } // namespace sync_start_util
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/profile_sync_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698