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

Unified Diff: chrome/browser/sync/engine/verify_updates_command.cc

Issue 386030: Relieve SyncerSession,SyncCycleState, SyncProcessState, SyncerSession, Syncer... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/engine/verify_updates_command.h ('k') | chrome/browser/sync/sessions/session_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/verify_updates_command.cc
===================================================================
--- chrome/browser/sync/engine/verify_updates_command.cc (revision 32731)
+++ chrome/browser/sync/engine/verify_updates_command.cc (working copy)
@@ -12,7 +12,6 @@
#include "chrome/browser/sync/engine/syncproto.h"
#include "chrome/browser/sync/syncable/directory_manager.h"
#include "chrome/browser/sync/syncable/syncable.h"
-#include "chrome/browser/sync/util/sync_types.h"
namespace browser_sync {
@@ -26,15 +25,17 @@
VerifyUpdatesCommand::VerifyUpdatesCommand() {}
VerifyUpdatesCommand::~VerifyUpdatesCommand() {}
-void VerifyUpdatesCommand::ExecuteImpl(SyncerSession* session) {
+void VerifyUpdatesCommand::ExecuteImpl(sessions::SyncSession* session) {
LOG(INFO) << "Beginning Update Verification";
- ScopedDirLookup dir(session->dirman(), session->account_name());
+ ScopedDirLookup dir(session->context()->directory_manager(),
+ session->context()->account_name());
if (!dir.good()) {
LOG(ERROR) << "Scoped dir lookup failed!";
return;
}
WriteTransaction trans(dir, SYNCER, __FILE__, __LINE__);
- GetUpdatesResponse updates = session->update_response().get_updates();
+ sessions::StatusController* status = session->status_controller();
+ const GetUpdatesResponse& updates = status->updates_response().get_updates();
int update_count = updates.entries().size();
LOG(INFO) << update_count << " entries to verify";
@@ -47,7 +48,7 @@
SyncerUtil::AttemptReuniteLostCommitResponses(&trans, entry,
trans.directory()->cache_guid());
VerifyResult result = VerifyUpdate(&trans, entry);
- session->AddVerifyResult(result, entry);
+ status->mutable_update_progress()->AddVerifyResult(result, entry);
}
}
« no previous file with comments | « chrome/browser/sync/engine/verify_updates_command.h ('k') | chrome/browser/sync/sessions/session_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698