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

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

Issue 2730303002: Move Feature Policy test to Frame (Closed)
Patch Set: Fix rebase Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/modules/payments/PaymentRequest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.");
« no previous file with comments | « third_party/WebKit/Source/modules/payments/PaymentRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698