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

Unified Diff: components/browser_sync/browser/profile_sync_service.cc

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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: components/browser_sync/browser/profile_sync_service.cc
diff --git a/components/browser_sync/browser/profile_sync_service.cc b/components/browser_sync/browser/profile_sync_service.cc
index de2967759da13acf4d8862d9d13fac1583130f68..e1fbc58a24cc54cf4b0335592ae9f0c706385140 100644
--- a/components/browser_sync/browser/profile_sync_service.cc
+++ b/components/browser_sync/browser/profile_sync_service.cc
@@ -75,11 +75,11 @@
#include "components/sync/driver/sync_util.h"
#include "components/sync/driver/system_encryptor.h"
#include "components/sync/driver/user_selectable_sync_type.h"
+#include "components/sync/engine/cycle/model_neutral_state.h"
+#include "components/sync/engine/cycle/type_debug_info_observer.h"
#include "components/sync/engine/sync_string_conversions.h"
#include "components/sync/js/js_event_details.h"
#include "components/sync/protocol/sync.pb.h"
-#include "components/sync/sessions/model_neutral_state.h"
-#include "components/sync/sessions/type_debug_info_observer.h"
#include "components/sync/syncable/directory.h"
#include "components/sync_sessions/favicon_cache.h"
#include "components/sync_sessions/session_data_type_controller.h"
@@ -1025,12 +1025,11 @@ void ProfileSyncService::OnBackendInitialized(
void ProfileSyncService::OnSyncCycleCompleted() {
UpdateLastSyncedTime();
- const syncer::sessions::SyncSessionSnapshot snapshot =
- GetLastSessionSnapshot();
+ const syncer::SyncCycleSnapshot snapshot = GetLastCycleSnapshot();
if (IsDataTypeControllerRunning(syncer::SESSIONS) &&
snapshot.model_neutral_state().get_updates_request_types.Has(
syncer::SESSIONS) &&
- !syncer::sessions::HasSyncerError(snapshot.model_neutral_state())) {
+ !syncer::HasSyncerError(snapshot.model_neutral_state())) {
// Trigger garbage collection of old sessions now that we've downloaded
// any new session data.
base::ThreadTaskRunnerHandle::Get()->PostTask(
@@ -1814,11 +1813,10 @@ syncer::UserShare* ProfileSyncService::GetUserShare() const {
return NULL;
}
-syncer::sessions::SyncSessionSnapshot
-ProfileSyncService::GetLastSessionSnapshot() const {
+syncer::SyncCycleSnapshot ProfileSyncService::GetLastCycleSnapshot() const {
if (backend_)
- return backend_->GetLastSessionSnapshot();
- return syncer::sessions::SyncSessionSnapshot();
+ return backend_->GetLastCycleSnapshot();
+ return syncer::SyncCycleSnapshot();
}
bool ProfileSyncService::HasUnsyncedItems() const {
« no previous file with comments | « components/browser_sync/browser/profile_sync_service.h ('k') | components/browser_sync/browser/profile_sync_service_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698