| 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 558b130470018db50354c48d03be9e24246d6a33..b4dd1b77011ea8b5bf442281fe2b681abb63fc76 100644
|
| --- a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
|
| +++ b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
|
| @@ -19,7 +19,6 @@
|
|
|
| #include "modules/vibration/NavigatorVibration.h"
|
|
|
| -#include "bindings/core/v8/ConditionalFeaturesForCore.h"
|
| #include "core/dom/Document.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/LocalFrame.h"
|
| @@ -82,8 +81,7 @@ bool NavigatorVibration::vibrate(Navigator& navigator,
|
| // TODO(lunalu): When FeaturePolicy is ready, take out the check for the
|
| // runtime flag. Please pay attention to the user gesture code below.
|
| if (RuntimeEnabledFeatures::featurePolicyEnabled() &&
|
| - !isFeatureEnabledInFrame(blink::WebFeaturePolicyFeature::Vibrate,
|
| - frame)) {
|
| + !frame->isFeatureEnabled(blink::WebFeaturePolicyFeature::Vibrate)) {
|
| frame->domWindow()->printErrorMessage(
|
| "Navigator.vibrate() is not enabled in feature policy for this "
|
| "frame.");
|
|
|