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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1756793004: Chrome-side patch for IsAppInstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@splitpatch2
Patch Set: Created 4 years, 10 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 | « content/renderer/render_frame_impl.h ('k') | third_party/WebKit/LayoutTests/installedapp/api-defined.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 4aaa5921a54aa6fb38a1095cd27e1381b37af9d1..716a5ee0ea3182e54386545acdc098a3b87cdc8d 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -91,6 +91,7 @@
#include "content/renderer/history_serialization.h"
#include "content/renderer/image_downloader/image_downloader_impl.h"
#include "content/renderer/ime_event_guard.h"
+#include "content/renderer/installedapp/installed_app_dispatcher.h"
#include "content/renderer/internal_document_state_data.h"
#include "content/renderer/manifest/manifest_manager.h"
#include "content/renderer/media/audio_device_factory.h"
@@ -4104,6 +4105,15 @@ blink::WebPushClient* RenderFrameImpl::pushClient() {
return push_messaging_dispatcher_;
}
+blink::WebInstalledApp* RenderFrameImpl::installedAppClient() {
+ if (!installed_app_client_) {
+ installed_app_client_.reset(
+ new InstalledAppDispatcher(this, GetServiceRegistry()));
+ }
+
+ return installed_app_client_.get();
+}
+
void RenderFrameImpl::willStartUsingPeerConnectionHandler(
blink::WebRTCPeerConnectionHandler* handler) {
#if defined(ENABLE_WEBRTC)
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | third_party/WebKit/LayoutTests/installedapp/api-defined.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698