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

Unified Diff: sky/engine/tonic/dart_timer_heap.h

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.cc ('k') | sky/engine/tonic/dart_timer_heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/tonic/dart_timer_heap.h
diff --git a/sky/engine/tonic/dart_timer_heap.h b/sky/engine/tonic/dart_timer_heap.h
index b482b2e87c531d66cafa8a733b5a0dc9716907ac..939b27c58c5dcdd8cad4336538100d4c00791c71 100644
--- a/sky/engine/tonic/dart_timer_heap.h
+++ b/sky/engine/tonic/dart_timer_heap.h
@@ -11,8 +11,6 @@
#include "base/time/time.h"
#include "dart/runtime/include/dart_api.h"
#include "sky/engine/tonic/dart_persistent_value.h"
-#include "sky/engine/wtf/OwnPtr.h"
-#include "sky/engine/wtf/PassOwnPtr.h"
namespace blink {
@@ -27,15 +25,15 @@ class DartTimerHeap {
bool repeating = false;
};
- int Add(PassOwnPtr<Task> task);
+ int Add(std::unique_ptr<Task> task);
void Remove(int id);
private:
- void Schedule(int id, PassOwnPtr<Task> task);
+ void Schedule(int id, std::unique_ptr<Task> task);
void Run(int id);
int next_timer_id_;
- std::unordered_map<int, OwnPtr<Task>> heap_;
+ std::unordered_map<int, std::unique_ptr<Task>> heap_;
base::WeakPtrFactory<DartTimerHeap> weak_factory_;
};
« no previous file with comments | « sky/engine/tonic/dart_state.cc ('k') | sky/engine/tonic/dart_timer_heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698