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

Unified Diff: sky/engine/tonic/dart_snapshot_loader.cc

Issue 1243483002: Port more uses of OwnPtr to std::unique_ptr (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/engine/tonic/dart_snapshot_loader.h ('k') | sky/engine/tonic/dart_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/tonic/dart_snapshot_loader.cc
diff --git a/sky/engine/tonic/dart_snapshot_loader.cc b/sky/engine/tonic/dart_snapshot_loader.cc
index 9277da7ff01b141bbce088eb817c39de8b4c34e0..f499eb7ef8b59810dd77100cfd4026bb917a13e4 100644
--- a/sky/engine/tonic/dart_snapshot_loader.cc
+++ b/sky/engine/tonic/dart_snapshot_loader.cc
@@ -28,7 +28,8 @@ void DartSnapshotLoader::LoadSnapshot(mojo::ScopedDataPipeConsumerHandle pipe,
TRACE_EVENT_ASYNC_BEGIN0("sky", "DartSnapshotLoader::LoadSnapshot", this);
callback_ = callback;
- drainer_ = adoptPtr(new DataPipeDrainer(this, pipe.Pass()));
+ drainer_ = std::unique_ptr<mojo::common::DataPipeDrainer>(
+ new DataPipeDrainer(this, pipe.Pass()));
}
void DartSnapshotLoader::OnDataAvailable(const void* data, size_t num_bytes) {
« no previous file with comments | « sky/engine/tonic/dart_snapshot_loader.h ('k') | sky/engine/tonic/dart_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698