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

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

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: content/renderer/screen_orientation/screen_orientation_dispatcher.cc
diff --git a/content/renderer/screen_orientation/screen_orientation_dispatcher.cc b/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
index 2b6a41feba071862301c53a5cd0af059a22ca6fa..bcac89d3b8e7415e70145032aab29c012e20790b 100644
--- a/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
+++ b/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
@@ -65,10 +65,10 @@ void ScreenOrientationDispatcher::CancelPendingLocks() {
void ScreenOrientationDispatcher::lockOrientation(
blink::WebScreenOrientationLockType orientation,
- blink::WebLockOrientationCallback* callback) {
+ std::unique_ptr<blink::WebLockOrientationCallback> callback) {
CancelPendingLocks();
- int request_id = pending_callbacks_.Add(callback);
+ int request_id = pending_callbacks_.Add(std::move(callback));
EnsureScreenOrientationService();
screen_orientation_->LockOrientation(
orientation,

Powered by Google App Engine
This is Rietveld 408576698