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

Unified Diff: third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp

Issue 2562323002: Devirtualize Frame::domWindow(). (Closed)
Patch Set: Created 4 years 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/vibration/NavigatorVibration.cpp
diff --git a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
index a932c52d8fb91acd1190398809414c75e55c7378..95e5b353ce92c7bb4da370d38504a524671702ad 100644
--- a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
+++ b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
@@ -82,11 +82,11 @@ bool NavigatorVibration::vibrate(Navigator& navigator,
// runtime flag.
if (!isFeatureEnabledInFrame(blink::kVibrateFeature, frame)) {
if (RuntimeEnabledFeatures::featurePolicyEnabled()) {
- frame->localDOMWindow()->printErrorMessage(
+ frame->domWindow()->printErrorMessage(
"Navigator.vibrate() is not enabled in feature policy for this "
"frame.");
} else {
- frame->localDOMWindow()->printErrorMessage(
+ frame->domWindow()->printErrorMessage(
"A call of navigator.vibrate will be no-op inside cross-origin "
"iframes: https://www.chromestatus.com/feature/5682658461876224.");
}

Powered by Google App Engine
This is Rietveld 408576698