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

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

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 dc200c15a294706bcc85fe72091b8ee5101c7a3f..fc13aebf59196723f92792f6566cd59aa4e9f425 100644
--- a/content/renderer/screen_orientation/screen_orientation_dispatcher.h
+++ b/content/renderer/screen_orientation/screen_orientation_dispatcher.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_RENDERER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_H_
#define CONTENT_RENDERER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_H_
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/id_map.h"
#include "base/macros.h"
@@ -40,8 +42,9 @@ class CONTENT_EXPORT ScreenOrientationDispatcher :
void OnDestruct() override;
// blink::WebScreenOrientationClient implementation.
- void lockOrientation(blink::WebScreenOrientationLockType orientation,
- blink::WebLockOrientationCallback* callback) override;
+ void lockOrientation(
+ blink::WebScreenOrientationLockType orientation,
+ std::unique_ptr<blink::WebLockOrientationCallback> callback) override;
void unlockOrientation() override;
void OnLockOrientationResult(int request_id,

Powered by Google App Engine
This is Rietveld 408576698