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

Side by Side Diff: chrome/browser/sync/profile_sync_service_factory.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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/profile_sync_service_factory.h" 5 #include "chrome/browser/sync/profile_sync_service_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 base::TimeTicks post_time) { 81 base::TimeTicks post_time) {
82 g_browser_process->network_time_tracker()->UpdateNetworkTime( 82 g_browser_process->network_time_tracker()->UpdateNetworkTime(
83 network_time, resolution, latency, post_time); 83 network_time, resolution, latency, post_time);
84 } 84 }
85 85
86 void UpdateNetworkTime(const base::Time& network_time, 86 void UpdateNetworkTime(const base::Time& network_time,
87 const base::TimeDelta& resolution, 87 const base::TimeDelta& resolution,
88 const base::TimeDelta& latency) { 88 const base::TimeDelta& latency) {
89 content::BrowserThread::PostTask( 89 content::BrowserThread::PostTask(
90 content::BrowserThread::UI, FROM_HERE, 90 content::BrowserThread::UI, FROM_HERE,
91 base::Bind(&UpdateNetworkTimeOnUIThread, network_time, resolution, 91 base::BindOnce(&UpdateNetworkTimeOnUIThread, network_time, resolution,
92 latency, base::TimeTicks::Now())); 92 latency, base::TimeTicks::Now()));
93 } 93 }
94 94
95 } // anonymous namespace 95 } // anonymous namespace
96 96
97 // static 97 // static
98 ProfileSyncServiceFactory* ProfileSyncServiceFactory::GetInstance() { 98 ProfileSyncServiceFactory* ProfileSyncServiceFactory::GetInstance() {
99 return base::Singleton<ProfileSyncServiceFactory>::get(); 99 return base::Singleton<ProfileSyncServiceFactory>::get();
100 } 100 }
101 101
102 // static 102 // static
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 // static 259 // static
260 void ProfileSyncServiceFactory::SetSyncClientFactoryForTest( 260 void ProfileSyncServiceFactory::SetSyncClientFactoryForTest(
261 SyncClientFactory* client_factory) { 261 SyncClientFactory* client_factory) {
262 client_factory_ = client_factory; 262 client_factory_ = client_factory;
263 } 263 }
264 264
265 // static 265 // static
266 ProfileSyncServiceFactory::SyncClientFactory* 266 ProfileSyncServiceFactory::SyncClientFactory*
267 ProfileSyncServiceFactory::client_factory_ = nullptr; 267 ProfileSyncServiceFactory::client_factory_ = nullptr;
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_start_util.cc ('k') | chrome/browser/sync/test/integration/autofill_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698