| 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 e81e8457444bd136b088db1da3d347b8d90ea0b6..45f31c8b3bf66be8941fa6add1860f24960859d5 100644
|
| --- a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
|
| +++ b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
|
| @@ -82,7 +82,8 @@ 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::kVibrateFeature, frame)) {
|
| + !isFeatureEnabledInFrame(blink::WebFeaturePolicyFeature::Vibrate,
|
| + frame)) {
|
| frame->domWindow()->printErrorMessage(
|
| "Navigator.vibrate() is not enabled in feature policy for this "
|
| "frame.");
|
|
|