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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Rebase. Created 4 years 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: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index f23032813ecfc83b9df814bff317a5c8fe1b9308..606780e9b9f80fb1271e49dee154f4944d050178 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -157,6 +157,7 @@
#include "core/timing/DOMWindowPerformance.h"
#include "core/timing/Performance.h"
#include "modules/app_banner/AppBannerController.h"
+#include "modules/installation/InstallationServiceImpl.h"
#include "modules/screen_orientation/ScreenOrientationControllerImpl.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/UserGestureIndicator.h"
@@ -1570,6 +1571,9 @@ void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host,
// frame()->document().
frame()->interfaceRegistry()->addInterface(WTF::bind(
&AppBannerController::bindMojoRequest, wrapWeakPersistent(frame())));
+
+ frame()->interfaceRegistry()->addInterface(WTF::bind(
+ &InstallationServiceImpl::create, wrapWeakPersistent(frame())));
}
}
« no previous file with comments | « third_party/WebKit/Source/modules/installation/InstallationServiceImpl.cpp ('k') | third_party/WebKit/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698