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

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 1410013008: [Sync] Remove some http-related chrome deps from SyncBackendHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index 64c67cc0c736b2856c98a46b27078cdc345f981f..3309efd6e87fcb9a315c1d681d28619c49b09802 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -44,6 +44,7 @@
#include "net/base/backoff_entry.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/internal_api/public/engine/model_safe_worker.h"
+#include "sync/internal_api/public/network_time_update_callback.h"
#include "sync/internal_api/public/shutdown_reason.h"
#include "sync/internal_api/public/sync_manager_factory.h"
#include "sync/internal_api/public/user_share.h"
@@ -233,7 +234,8 @@ class ProfileSyncService : public sync_driver::SyncService,
Profile* profile,
scoped_ptr<SigninManagerWrapper> signin_wrapper,
ProfileOAuth2TokenService* oauth2_token_service,
- browser_sync::ProfileSyncServiceStartBehavior start_behavior);
+ browser_sync::ProfileSyncServiceStartBehavior start_behavior,
+ const syncer::NetworkTimeUpdateCallback& network_time_update_callback);
~ProfileSyncService() override;
// Initializes the object. This must be called at most once, and
@@ -799,6 +801,9 @@ class ProfileSyncService : public sync_driver::SyncService,
// OnConfigureDone is called.
base::Time sync_configure_start_time_;
+ // Callback to update the network time; used for initializing the backend.
+ syncer::NetworkTimeUpdateCallback network_time_update_callback_;
+
// Indicates if this is the first time sync is being configured. This value
// is equal to !HasSyncSetupCompleted() at the time of OnBackendInitialized().
bool is_first_time_sync_configure_;
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698