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

Unified Diff: content/browser/renderer_host/input/touch_event_queue.h

Issue 2435863004: Remove stl_util's deletion function use from content/. (Closed)
Patch Set: minus service worker Created 4 years, 2 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
Index: content/browser/renderer_host/input/touch_event_queue.h
diff --git a/content/browser/renderer_host/input/touch_event_queue.h b/content/browser/renderer_host/input/touch_event_queue.h
index 31a69fcb18eba261e87676d91e84ef21bace8421..292f3d664d24220b080d4f55f2772ee46e4ae39b 100644
--- a/content/browser/renderer_host/input/touch_event_queue.h
+++ b/content/browser/renderer_host/input/touch_event_queue.h
@@ -10,6 +10,7 @@
#include <deque>
#include <list>
+#include <memory>
#include "base/macros.h"
#include "base/time/time.h"
@@ -183,8 +184,7 @@ class CONTENT_EXPORT TouchEventQueue {
// Handles touch event forwarding and ack'ed event dispatch.
TouchEventQueueClient* client_;
- typedef std::list<CoalescedWebTouchEvent*> TouchQueue;
- TouchQueue touch_queue_;
+ std::list<std::unique_ptr<CoalescedWebTouchEvent>> touch_queue_;
// Position of the first touch in the most recent sequence forwarded to the
// client.

Powered by Google App Engine
This is Rietveld 408576698