| Index: components/test_runner/mock_screen_orientation_client.cc
|
| diff --git a/components/test_runner/mock_screen_orientation_client.cc b/components/test_runner/mock_screen_orientation_client.cc
|
| index 80a1dbf013128a1debadc8945f768fdf50cd2318..7fe803debb269e33f76026a40a8fac3d48b8b0f4 100644
|
| --- a/components/test_runner/mock_screen_orientation_client.cc
|
| +++ b/components/test_runner/mock_screen_orientation_client.cc
|
| @@ -15,7 +15,8 @@
|
| : main_frame_(NULL),
|
| current_lock_(blink::WebScreenOrientationLockDefault),
|
| device_orientation_(blink::WebScreenOrientationPortraitPrimary),
|
| - current_orientation_(blink::WebScreenOrientationPortraitPrimary) {
|
| + current_orientation_(blink::WebScreenOrientationPortraitPrimary),
|
| + is_active_(false) {
|
| }
|
|
|
| MockScreenOrientationClient::~MockScreenOrientationClient() {
|
| @@ -25,12 +26,14 @@
|
| current_lock_ = blink::WebScreenOrientationLockDefault;
|
| device_orientation_ = blink::WebScreenOrientationPortraitPrimary;
|
| current_orientation_ = blink::WebScreenOrientationPortraitPrimary;
|
| + is_active_ = true;
|
| }
|
|
|
| void MockScreenOrientationClient::UpdateDeviceOrientation(
|
| blink::WebLocalFrame* main_frame,
|
| blink::WebScreenOrientationType orientation) {
|
| main_frame_ = main_frame;
|
| + is_active_ = true;
|
| if (device_orientation_ == orientation)
|
| return;
|
| device_orientation_ = orientation;
|
|
|