| Index: Source/modules/vibration/NavigatorVibration.cpp
|
| diff --git a/Source/modules/vibration/NavigatorVibration.cpp b/Source/modules/vibration/NavigatorVibration.cpp
|
| index 7a62bf3265a5e3a333eb80783df572d6022f902d..c8315fbf019086b851ac919b81ff90116437e71c 100644
|
| --- a/Source/modules/vibration/NavigatorVibration.cpp
|
| +++ b/Source/modules/vibration/NavigatorVibration.cpp
|
| @@ -23,6 +23,7 @@
|
| #include "bindings/modules/v8/UnionTypesModules.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/Navigator.h"
|
| +#include "core/frame/UseCounter.h"
|
| #include "core/page/PageVisibilityState.h"
|
| #include "public/platform/Platform.h"
|
|
|
| @@ -168,6 +169,10 @@ bool NavigatorVibration::vibrate(Navigator& navigator, const VibrationPattern& p
|
| if (!navigator.frame())
|
| return false;
|
|
|
| + UseCounter::count(navigator.frame(), UseCounter::NavigatorVibrate);
|
| + if (!navigator.frame()->isMainFrame())
|
| + UseCounter::count(navigator.frame(), UseCounter::NavigatorVibrateSubFrame);
|
| +
|
| Page* page = navigator.frame()->page();
|
| if (!page)
|
| return false;
|
|
|