Index: sync/engine/commit.cc |
diff --git a/sync/engine/commit.cc b/sync/engine/commit.cc |
index 743996d026ba062c777f01f5a0615a506cc40b3f..c089cc973306ad0533e8bd5876c98ca5a2f656b2 100644 |
--- a/sync/engine/commit.cc |
+++ b/sync/engine/commit.cc |
@@ -21,11 +21,10 @@ namespace syncer { |
Commit::Commit(ContributionMap contributions, |
const sync_pb::ClientToServerMessage& message, |
ExtensionsActivity::Records extensions_activity_buffer) |
- : contributions_(contributions.Pass()), |
+ : contributions_(std::move(contributions)), |
message_(message), |
extensions_activity_buffer_(extensions_activity_buffer), |
- cleaned_up_(false) { |
-} |
+ cleaned_up_(false) {} |
Commit::~Commit() { |
DCHECK(cleaned_up_); |
@@ -88,7 +87,8 @@ Commit* Commit::Init( |
} |
// If we made it this far, then we've successfully prepared a commit message. |
- return new Commit(contributions.Pass(), message, extensions_activity_buffer); |
+ return new Commit(std::move(contributions), message, |
+ extensions_activity_buffer); |
} |
SyncerError Commit::PostAndProcessResponse( |