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

Unified Diff: sky/engine/tonic/dart_library_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_library_loader.h ('k') | sky/engine/tonic/dart_snapshot_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/tonic/dart_library_loader.cc
diff --git a/sky/engine/tonic/dart_library_loader.cc b/sky/engine/tonic/dart_library_loader.cc
index e45e5d0e4ad87ddff8894ab0ccc34ff62fdbbdf9..cf927b69adc74b08997ea4d28154085121dafd22 100644
--- a/sky/engine/tonic/dart_library_loader.cc
+++ b/sky/engine/tonic/dart_library_loader.cc
@@ -21,13 +21,15 @@ using mojo::common::DataPipeDrainer;
namespace blink {
namespace {
- // Helper to erase a T* from a container of std::unique_ptr<T>s.
- template<typename T, typename C>
- void EraseUniquePtr(C& container, T* item) {
- std::unique_ptr<T> key = std::unique_ptr<T>(item);
- container.erase(key);
- key.release();
- }
+
+// Helper to erase a T* from a container of std::unique_ptr<T>s.
+template<typename T, typename C>
+void EraseUniquePtr(C& container, T* item) {
+ std::unique_ptr<T> key = std::unique_ptr<T>(item);
+ container.erase(key);
+ key.release();
+}
+
}
// A DartLibraryLoader::Job represents a network load. It fetches data from the
« no previous file with comments | « sky/engine/tonic/dart_library_loader.h ('k') | sky/engine/tonic/dart_snapshot_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698