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

Unified Diff: sync/test/engine/mock_connection_manager.cc

Issue 10669038: base: Remove dereference structure operator (i.e ->) from ScopedVector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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
« no previous file with comments | « net/dns/dns_transaction.cc ('k') | ui/base/models/list_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/mock_connection_manager.cc
diff --git a/sync/test/engine/mock_connection_manager.cc b/sync/test/engine/mock_connection_manager.cc
index 4683ab7de5e0f86c40464aabb0193e3b2c05a113..fdbecd45ab59638238053bdfd73aa3b3748994d0 100644
--- a/sync/test/engine/mock_connection_manager.cc
+++ b/sync/test/engine/mock_connection_manager.cc
@@ -470,8 +470,8 @@ void MockConnectionManager::ProcessCommit(ClientToServerMessage* csm,
map <string, string> changed_ids;
const CommitMessage& commit_message = csm->commit();
CommitResponse* commit_response = response_buffer->mutable_commit();
- commit_messages_->push_back(new CommitMessage);
- commit_messages_->back()->CopyFrom(commit_message);
+ commit_messages_.push_back(new CommitMessage);
+ commit_messages_.back()->CopyFrom(commit_message);
map<string, CommitResponse_EntryResponse*> response_map;
for (int i = 0; i < commit_message.entries_size() ; i++) {
const sync_pb::SyncEntity& entry = commit_message.entries(i);
@@ -513,7 +513,7 @@ void MockConnectionManager::ProcessCommit(ClientToServerMessage* csm,
er->set_id_string(new_id);
}
}
- commit_responses_->push_back(new CommitResponse(*commit_response));
+ commit_responses_.push_back(new CommitResponse(*commit_response));
}
SyncEntity* MockConnectionManager::AddUpdateDirectory(
@@ -544,12 +544,12 @@ void MockConnectionManager::NextUpdateBatch() {
const CommitMessage& MockConnectionManager::last_sent_commit() const {
EXPECT_TRUE(!commit_messages_.empty());
- return *commit_messages_->back();
+ return *commit_messages_.back();
}
const CommitResponse& MockConnectionManager::last_commit_response() const {
EXPECT_TRUE(!commit_responses_.empty());
- return *commit_responses_->back();
+ return *commit_responses_.back();
}
bool MockConnectionManager::IsModelTypePresentInSpecifics(
« no previous file with comments | « net/dns/dns_transaction.cc ('k') | ui/base/models/list_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698