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

Unified Diff: content/browser/frame_host/render_frame_host_manager.cc

Issue 2146803004: Create a content::FrameOwnerProperties struct for IPC transport of WebFrameOwnerProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Transport Created 4 years, 5 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/browser/frame_host/render_frame_host_manager.cc
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index 506cbcb406afa97d6d832ba94eeec3fde328777e..65b1f4de8256a4fdd834d9ebea2b3ff864385fb7 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -36,6 +36,7 @@
#include "content/browser/site_instance_impl.h"
#include "content/browser/webui/web_ui_controller_factory_registry.h"
#include "content/common/frame_messages.h"
+#include "content/common/frame_owner_properties.h"
#include "content/common/site_isolation_policy.h"
#include "content/common/view_messages.h"
#include "content/public/browser/content_browser_client.h"
@@ -989,7 +990,7 @@ void RenderFrameHostManager::OnDidUpdateFrameOwnerProperties(
// Notify the RenderFrame if it lives in a different process from its parent.
if (render_frame_host_->GetSiteInstance() != parent_instance) {
render_frame_host_->Send(new FrameMsg_SetFrameOwnerProperties(
- render_frame_host_->GetRoutingID(), properties));
+ render_frame_host_->GetRoutingID(), FrameOwnerProperties(properties)));
}
// Notify this frame's proxies if they live in a different process from its
@@ -1001,7 +1002,7 @@ void RenderFrameHostManager::OnDidUpdateFrameOwnerProperties(
for (const auto& pair : proxy_hosts_) {
if (pair.second->GetSiteInstance() != parent_instance) {
pair.second->Send(new FrameMsg_SetFrameOwnerProperties(
- pair.second->GetRoutingID(), properties));
+ pair.second->GetRoutingID(), FrameOwnerProperties(properties)));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698