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

Unified Diff: chrome/renderer/chrome_render_frame_observer.cc

Issue 2746293005: Migrated ChromeViewHostMsg_PageHasOSDD to Mojo. (Closed)
Patch Set: Manually reverted format changes (from my auto-formatting plugin). Created 3 years, 9 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
« chrome/common/osdd_handler.mojom ('K') | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_frame_observer.cc
diff --git a/chrome/renderer/chrome_render_frame_observer.cc b/chrome/renderer/chrome_render_frame_observer.cc
index 729e75b33b0d1226356cf5c05b26a404246f02d2..7ec7f65fe4b5ac1159f5d5cbd6e03dccb72dcc5a 100644
--- a/chrome/renderer/chrome_render_frame_observer.cc
+++ b/chrome/renderer/chrome_render_frame_observer.cc
@@ -19,6 +19,7 @@
#include "chrome/common/chrome_isolated_world_ids.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/crash_keys.h"
+#include "chrome/common/osdd_handler.mojom.h"
#include "chrome/common/prerender_messages.h"
#include "chrome/common/render_messages.h"
#include "chrome/renderer/prerender/prerender_helper.h"
@@ -28,6 +29,7 @@
#include "content/public/renderer/render_view.h"
#include "extensions/common/constants.h"
#include "printing/features/features.h"
+#include "services/service_manager/public/cpp/interface_provider.h"
#include "skia/ext/image_operations.h"
#include "third_party/WebKit/public/platform/WebImage.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
@@ -246,8 +248,10 @@ void ChromeRenderFrameObserver::DidFinishLoad() {
GURL osdd_url = frame->document().openSearchDescriptionURL();
if (!osdd_url.is_empty()) {
- Send(new ChromeViewHostMsg_PageHasOSDD(
- routing_id(), frame->document().url(), osdd_url));
+ chrome::mojom::OSDDHandlerPtr osdd_handler;
+ render_frame()->GetRemoteInterfaces()->GetInterface(
+ mojo::MakeRequest(&osdd_handler));
Sam McNally 2017/03/15 00:38:48 GetInterface() has an overload that calls MakeRequ
martis 2017/03/15 05:00:56 Done.
+ osdd_handler->OnPageHasOSDD(frame->document().url(), osdd_url);
}
}
« chrome/common/osdd_handler.mojom ('K') | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698