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

Unified Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp

Issue 2188523005: Remove ScreenOrientation runtime flag (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: V2 Created 4 years, 5 months 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/Source/modules/screen_orientation/ScreenOrientationController.cpp
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
index d87d1887abc9028651b6f1295009848f8ba68a2d..9215af491292fb83e25d9895463737a6827b9dea 100644
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
@@ -25,8 +25,6 @@ ScreenOrientationController::~ScreenOrientationController()
void ScreenOrientationController::provideTo(LocalFrame& frame, WebScreenOrientationClient* client)
{
- ASSERT(RuntimeEnabledFeatures::screenOrientationEnabled());
-
ScreenOrientationController* controller = new ScreenOrientationController(frame, client);
Supplement<LocalFrame>::provideTo(frame, supplementName(), controller);
}
@@ -120,8 +118,6 @@ void ScreenOrientationController::pageVisibilityChanged()
void ScreenOrientationController::notifyOrientationChanged()
{
- ASSERT(RuntimeEnabledFeatures::screenOrientationEnabled());
-
if (!isActiveAndVisible())
return;

Powered by Google App Engine
This is Rietveld 408576698