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

Unified Diff: extensions/browser/guest_view/guest_view_base.cc

Issue 458323002: Change GuestViewInternalCreateGuestFunction to create the guest view using the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseeeeeee Created 6 years, 4 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 | « chrome/test/data/extensions/platform_apps/web_view/background/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/guest_view/guest_view_base.cc
diff --git a/extensions/browser/guest_view/guest_view_base.cc b/extensions/browser/guest_view/guest_view_base.cc
index 60e1b3cfd14ba585cb77b1f955ece1f4e014332a..d0469cada0823a381f4ec58cea3bc30abc63ca9d 100644
--- a/extensions/browser/guest_view/guest_view_base.cc
+++ b/extensions/browser/guest_view/guest_view_base.cc
@@ -121,6 +121,9 @@ void GuestViewBase::Init(const std::string& embedder_extension_id,
extensions::ExtensionRegistry::Get(browser_context_)
->enabled_extensions()
.GetByID(embedder_extension_id);
+ // Ok for |embedder_extension| to be NULL, the embedder might be WebUI.
+
+ CHECK(embedder_web_contents);
int embedder_process_id =
embedder_web_contents->GetRenderProcessHost()->GetID();
« no previous file with comments | « chrome/test/data/extensions/platform_apps/web_view/background/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698