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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1089813002: Change beforeinstallprompt event to take an array of platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index caea872adab0f715961a1a565b5980e79acb49b9..b2c97436aa53c5641081f5a815a7133c7200a8f0 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -2030,12 +2030,19 @@ void WebLocalFrameImpl::sendOrientationChangeEvent()
frame()->localDOMWindow()->sendOrientationChangeEvent();
}
-void WebLocalFrameImpl::willShowInstallBannerPrompt(const WebString& platform, WebAppBannerPromptReply* reply)
+void WebLocalFrameImpl::willShowInstallBannerPrompt(const WebVector<WebString>& platforms, WebAppBannerPromptReply* reply)
{
if (!RuntimeEnabledFeatures::appBannerEnabled() || !frame())
return;
- AppBannerController::willShowInstallBannerPrompt(frame(), platform, reply);
+ AppBannerController::willShowInstallBannerPrompt(frame(), platforms, reply);
+}
+
+
+void WebLocalFrameImpl::willShowInstallBannerPrompt(const WebString& platform, WebAppBannerPromptReply* reply)
+{
+ WebVector<WebString> platforms(&platform, 1);
+ willShowInstallBannerPrompt(platforms, reply);
}
void WebLocalFrameImpl::requestRunTask(WebSuspendableTask* task) const

Powered by Google App Engine
This is Rietveld 408576698