Index: chrome/browser/guest_view/web_view/web_view_guest.cc |
diff --git a/chrome/browser/guest_view/web_view/web_view_guest.cc b/chrome/browser/guest_view/web_view/web_view_guest.cc |
index 981e16626e6b37000aa396729277e901b29a915c..de3fde66e0221b8398336e65955570bafcd68ed6 100644 |
--- a/chrome/browser/guest_view/web_view/web_view_guest.cc |
+++ b/chrome/browser/guest_view/web_view/web_view_guest.cc |
@@ -33,6 +33,7 @@ |
#include "content/public/browser/notification_source.h" |
#include "content/public/browser/notification_types.h" |
#include "content/public/browser/render_process_host.h" |
+#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/resource_request_details.h" |
#include "content/public/browser/site_instance.h" |
#include "content/public/browser/storage_partition.h" |
@@ -902,6 +903,8 @@ void WebViewGuest::UserAgentOverrideSet(const std::string& user_agent) { |
} |
void WebViewGuest::RenderViewReady() { |
+ // The guest RenderView should always live in an isolated guest process. |
+ CHECK(guest_web_contents()->GetRenderProcessHost()->IsIsolatedGuest()); |
Send(new ChromeViewMsg_SetName(guest_web_contents()->GetRoutingID(), name_)); |
} |