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

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

Issue 8638001: [Sync] Made some sync session member functions const (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix latent bug in StatusController Created 9 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/syncer_command.cc ('k') | chrome/browser/sync/engine/syncer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/syncer_proto_util.cc
diff --git a/chrome/browser/sync/engine/syncer_proto_util.cc b/chrome/browser/sync/engine/syncer_proto_util.cc
index 84abca64ffba9062664e5ee4d9e1e17648c3ac8d..7da3140a6f82ec93b178c829f226980aa38b0c50 100644
--- a/chrome/browser/sync/engine/syncer_proto_util.cc
+++ b/chrome/browser/sync/engine/syncer_proto_util.cc
@@ -93,7 +93,8 @@ void SyncerProtoUtil::HandleMigrationDoneResponse(
response->migrated_data_type_id(i)));
}
// TODO(akalin): This should be a set union.
- session->status_controller()->set_types_needing_local_migration(to_migrate);
+ session->mutable_status_controller()->
+ set_types_needing_local_migration(to_migrate);
}
// static
@@ -313,7 +314,7 @@ bool SyncerProtoUtil::PostClientToServerMessage(
}
// Now set the error into the status so the layers above us could read it.
- sessions::StatusController* status = session->status_controller();
+ sessions::StatusController* status = session->mutable_status_controller();
status->set_sync_protocol_error(sync_protocol_error);
// Inform the delegate of the error we got.
« no previous file with comments | « chrome/browser/sync/engine/syncer_command.cc ('k') | chrome/browser/sync/engine/syncer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698