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

Unified Diff: third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationClient.h

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers 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: third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationClient.h
diff --git a/third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationClient.h b/third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationClient.h
index 81f46101993f615b95fae9822376d261a7424956..3530bfc686b83b11cafad6b9481483cde0e914f5 100644
--- a/third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationClient.h
+++ b/third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationClient.h
@@ -6,6 +6,7 @@
#define WebScreenOrientationClient_h
#include "public/platform/modules/screen_orientation/WebScreenOrientationLockType.h"
+#include <memory>
namespace blink {
@@ -19,7 +20,7 @@ class WebScreenOrientationClient {
// Request a screen orientation lock. The implementation will own the
// callback.
virtual void lockOrientation(WebScreenOrientationLockType,
- WebLockOrientationCallback*) = 0;
+ std::unique_ptr<WebLockOrientationCallback>) = 0;
// Unlock the screen orientation. No-op if the screen orientation was not
// locked.

Powered by Google App Engine
This is Rietveld 408576698