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

Unified Diff: mojo/dart/dart_snapshotter/main.cc

Issue 1351293002: Convert remaining scoped_ptr -> std::unique_ptr in //mojo/edk (minus js). (Closed) Base URL: https://github.com/domokit/mojo.git@edk_unique_ptr_5
Patch Set: oops, forgot to fix android Created 5 years, 3 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 | « mojo/android/javatests/init_library.cc ('k') | mojo/edk/embedder/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/dart_snapshotter/main.cc
diff --git a/mojo/dart/dart_snapshotter/main.cc b/mojo/dart/dart_snapshotter/main.cc
index 48e5341af148b4f103082493ff074bdd9a7e6dda..7fb52567fb66ca9d6035210626937a2ca7fa2a7a 100644
--- a/mojo/dart/dart_snapshotter/main.cc
+++ b/mojo/dart/dart_snapshotter/main.cc
@@ -61,8 +61,9 @@ int main(int argc, const char* argv[]) {
}
// Initialize mojo.
- mojo::embedder::Init(
- make_scoped_ptr(new mojo::embedder::SimplePlatformSupport()));
+ // TODO(vtl): Use make_unique when C++14 is available.
+ mojo::embedder::Init(std::unique_ptr<mojo::embedder::PlatformSupport>(
+ new mojo::embedder::SimplePlatformSupport()));
InitDartVM();
« no previous file with comments | « mojo/android/javatests/init_library.cc ('k') | mojo/edk/embedder/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698