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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 660023003: [Sync] Fix bug where DeviceInfo is missing a backup timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master. Created 6 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
« no previous file with comments | « no previous file | chrome/browser/sync/profile_sync_service.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 (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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 Profile* profile_; 980 Profile* profile_;
981 981
982 // The class that handles getting, setting, and persisting sync 982 // The class that handles getting, setting, and persisting sync
983 // preferences. 983 // preferences.
984 sync_driver::SyncPrefs sync_prefs_; 984 sync_driver::SyncPrefs sync_prefs_;
985 985
986 // TODO(ncarter): Put this in a profile, once there is UI for it. 986 // TODO(ncarter): Put this in a profile, once there is UI for it.
987 // This specifies where to find the sync server. 987 // This specifies where to find the sync server.
988 const GURL sync_service_url_; 988 const GURL sync_service_url_;
989 989
990 // The last time we detected a successful transition from SYNCING state.
991 // Our backend notifies us whenever we should take a new snapshot.
992 base::Time last_synced_time_;
993
994 // The time that OnConfigureStart is called. This member is zero if 990 // The time that OnConfigureStart is called. This member is zero if
995 // OnConfigureStart has not yet been called, and is reset to zero once 991 // OnConfigureStart has not yet been called, and is reset to zero once
996 // OnConfigureDone is called. 992 // OnConfigureDone is called.
997 base::Time sync_configure_start_time_; 993 base::Time sync_configure_start_time_;
998 994
999 // Indicates if this is the first time sync is being configured. This value 995 // Indicates if this is the first time sync is being configured. This value
1000 // is equal to !HasSyncSetupCompleted() at the time of OnBackendInitialized(). 996 // is equal to !HasSyncSetupCompleted() at the time of OnBackendInitialized().
1001 bool is_first_time_sync_configure_; 997 bool is_first_time_sync_configure_;
1002 998
1003 // List of available data type controllers for directory types. 999 // List of available data type controllers for directory types.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 BrowsingDataRemover::Observer* browsing_data_remover_observer_; 1157 BrowsingDataRemover::Observer* browsing_data_remover_observer_;
1162 1158
1163 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1159 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1164 }; 1160 };
1165 1161
1166 bool ShouldShowActionOnUI( 1162 bool ShouldShowActionOnUI(
1167 const syncer::SyncProtocolError& error); 1163 const syncer::SyncProtocolError& error);
1168 1164
1169 1165
1170 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1166 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698