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

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

Issue 8638001: [Sync] Made some sync session member functions const (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Constify a few more, sync to head 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
Index: chrome/browser/sync/engine/process_commit_response_command_unittest.cc
diff --git a/chrome/browser/sync/engine/process_commit_response_command_unittest.cc b/chrome/browser/sync/engine/process_commit_response_command_unittest.cc
index 44d2a8a2e0601e136e10cf9c13a27a3da2286a87..83b8885893977df7454aa5fabb630f299b4d32d3 100644
--- a/chrome/browser/sync/engine/process_commit_response_command_unittest.cc
+++ b/chrome/browser/sync/engine/process_commit_response_command_unittest.cc
@@ -126,7 +126,8 @@ class ProcessCommitResponseCommandTestWithParam
const Id& parent_id,
const string& name,
syncable::ModelType model_type) {
- sessions::StatusController* sync_state = session()->status_controller();
+ sessions::StatusController* sync_state =
+ session()->mutable_status_controller();
bool is_folder = true;
int64 metahandle = 0;
CreateUnsyncedItem(item_id, parent_id, name, is_folder, model_type,
@@ -187,7 +188,8 @@ class ProcessCommitResponseCommandTestWithParam
}
void SetLastErrorCode(CommitResponse::ResponseType error_code) {
- sessions::StatusController* sync_state = session()->status_controller();
+ sessions::StatusController* sync_state =
+ session()->mutable_status_controller();
sync_pb::ClientToServerResponse* response =
sync_state->mutable_commit_response();
sync_pb::CommitResponse_EntryResponse* entry_response =

Powered by Google App Engine
This is Rietveld 408576698