| Index: third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp
|
| diff --git a/third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp b/third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp
|
| index e1cc325f45a896bd8abce63c84d6cf9affdc0bfe..88262955b222a01eb94ec054ccb79102cb212963 100644
|
| --- a/third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp
|
| +++ b/third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp
|
| @@ -27,8 +27,9 @@ void AppBannerController::willShowInstallBannerPrompt(int requestId, WebAppBanne
|
|
|
| // dispatchEvent() returns whether the default behavior can happen. In other
|
| // words, it returns false if preventDefault() was called.
|
| - *reply = frame->domWindow()->dispatchEvent(BeforeInstallPromptEvent::create(EventTypeNames::beforeinstallprompt, frame->document(), wtfPlatforms, requestId, client))
|
| - ? WebAppBannerPromptReply::None : WebAppBannerPromptReply::Cancel;
|
| + *reply = frame->domWindow()->dispatchEvent(BeforeInstallPromptEvent::create(EventTypeNames::beforeinstallprompt, frame->document(), wtfPlatforms, requestId, client)) == DispatchEventResult::NotCanceled
|
| + ? WebAppBannerPromptReply::None
|
| + : WebAppBannerPromptReply::Cancel;
|
| }
|
|
|
| } // namespace blink
|
|
|