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

Unified Diff: components/test_runner/mock_screen_orientation_client.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: components/test_runner/mock_screen_orientation_client.h
diff --git a/components/test_runner/mock_screen_orientation_client.h b/components/test_runner/mock_screen_orientation_client.h
index 1c5034974a8767630bb9d697f5778bf86e44d131..495184cf25502165bf53376555b7df53736dea1c 100644
--- a/components/test_runner/mock_screen_orientation_client.h
+++ b/components/test_runner/mock_screen_orientation_client.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_TEST_RUNNER_MOCK_SCREEN_ORIENTATION_CLIENT_H_
#define COMPONENTS_TEST_RUNNER_MOCK_SCREEN_ORIENTATION_CLIENT_H_
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "components/test_runner/test_runner_export.h"
@@ -36,12 +38,13 @@ class TEST_RUNNER_EXPORT MockScreenOrientationClient
private:
// From blink::WebScreenOrientationClient.
- 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 UpdateLockSync(blink::WebScreenOrientationLockType,
- blink::WebLockOrientationCallback*);
+ std::unique_ptr<blink::WebLockOrientationCallback>);
void ResetLockSync();
void UpdateScreenOrientation(blink::WebScreenOrientationType);
« no previous file with comments | « components/gcm_driver/instance_id/instance_id_android.cc ('k') | components/test_runner/mock_screen_orientation_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698