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

Unified Diff: sky/engine/tonic/dart_state.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_state.h ('k') | sky/engine/tonic/dart_timer_heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/tonic/dart_state.cc
diff --git a/sky/engine/tonic/dart_state.cc b/sky/engine/tonic/dart_state.cc
index 36b1dfbdaa463d6375a51bc0dca4d7ef32731883..e1c69479a2e27521213ac05699ddf225e9727de2 100644
--- a/sky/engine/tonic/dart_state.cc
+++ b/sky/engine/tonic/dart_state.cc
@@ -22,11 +22,15 @@ DartState::Scope::~Scope() {
DartState::DartState()
: isolate_(NULL),
- class_library_(adoptPtr(new DartClassLibrary)),
- exception_factory_(adoptPtr(new DartExceptionFactory(this))),
- library_loader_(adoptPtr(new DartLibraryLoader(this))),
- string_cache_(adoptPtr(new DartStringCache)),
- timer_heap_(adoptPtr(new DartTimerHeap())),
+ class_library_(std::unique_ptr<DartClassLibrary>(new DartClassLibrary)),
+ exception_factory_(std::unique_ptr<DartExceptionFactory>(
+ new DartExceptionFactory(this))),
+ library_loader_(std::unique_ptr<DartLibraryLoader>(
+ new DartLibraryLoader(this))),
+ string_cache_(std::unique_ptr<DartStringCache>(
+ new DartStringCache)),
+ timer_heap_(std::unique_ptr<DartTimerHeap>(
+ new DartTimerHeap())),
weak_factory_(this) {
}
« no previous file with comments | « sky/engine/tonic/dart_state.h ('k') | sky/engine/tonic/dart_timer_heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698