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

Unified Diff: sync/internal_api/protocol_event_buffer.cc

Issue 1132343003: Passing scoped_ptr into ScopedVector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | sync/sessions/model_type_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/protocol_event_buffer.cc
diff --git a/sync/internal_api/protocol_event_buffer.cc b/sync/internal_api/protocol_event_buffer.cc
index 2e9ba64407b44ea4a8b1b08b5ec485f447d0263b..3d76bd97b1c41a22868c7f44b94a662378885384 100644
--- a/sync/internal_api/protocol_event_buffer.cc
+++ b/sync/internal_api/protocol_event_buffer.cc
@@ -29,7 +29,7 @@ ProtocolEventBuffer::GetBufferedProtocolEvents() const {
ScopedVector<ProtocolEvent> ret;
for (std::deque<ProtocolEvent*>::const_iterator it = buffer_.begin();
it != buffer_.end(); ++it) {
- ret.push_back((*it)->Clone().release());
+ ret.push_back((*it)->Clone().Pass());
}
return ret.Pass();
}
« no previous file with comments | « no previous file | sync/sessions/model_type_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698