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

Unified Diff: content/renderer/screen_orientation/screen_orientation_dispatcher.h

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years 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/renderer/screen_orientation/screen_orientation_dispatcher.h
diff --git a/content/renderer/screen_orientation/screen_orientation_dispatcher.h b/content/renderer/screen_orientation/screen_orientation_dispatcher.h
index 21d31f5feea76c4083f0e756753dcb31ecaab566..aa9caf34bb683ad043b2c875fbd9b58bea12a7db 100644
--- a/content/renderer/screen_orientation/screen_orientation_dispatcher.h
+++ b/content/renderer/screen_orientation/screen_orientation_dispatcher.h
@@ -68,7 +68,7 @@ class CONTENT_EXPORT ScreenOrientationDispatcher :
// pointer in the sense that it will destroy it when Remove() will be called.
// Furthermore, we only expect to have one callback at a time in this map,
// which is what IDMap was designed for.
- typedef IDMap<blink::WebLockOrientationCallback, IDMapOwnPointer> CallbackMap;
+ using CallbackMap = IDMap<std::unique_ptr<blink::WebLockOrientationCallback>>;
CallbackMap pending_callbacks_;
ScreenOrientationAssociatedPtr screen_orientation_;
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | content/renderer/service_worker/embedded_worker_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698