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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2488573002: Refactor getInstalledRelatedApps code and add manifest logic and tests. (Closed)
Patch Set: Use SecurityOrigin, not WebSecurityOrigin. Created 3 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
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 9675f6cba5a57a9a0aa996656ae24ebbbae40741..9d69dc69670c92323e32834af7b6c7d73e34a337 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -107,6 +107,7 @@
#include "content/renderer/image_downloader/image_downloader_impl.h"
#include "content/renderer/ime_event_guard.h"
#include "content/renderer/input/input_handler_manager.h"
+#include "content/renderer/installedapp/related_apps_fetcher.h"
#include "content/renderer/internal_document_state_data.h"
#include "content/renderer/manifest/manifest_manager.h"
#include "content/renderer/media/audio_device_factory.h"
@@ -4571,6 +4572,13 @@ blink::WebPushClient* RenderFrameImpl::pushClient() {
return push_messaging_dispatcher_;
}
+blink::WebRelatedAppsFetcher* RenderFrameImpl::relatedAppsFetcher() {
+ if (!related_apps_fetcher_)
+ related_apps_fetcher_.reset(new RelatedAppsFetcher(manifest_manager_));
+
+ return related_apps_fetcher_.get();
+}
+
void RenderFrameImpl::willStartUsingPeerConnectionHandler(
blink::WebRTCPeerConnectionHandler* handler) {
#if BUILDFLAG(ENABLE_WEBRTC)
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698