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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 258373002: Towards moving guest management to chrome: Introduce GuestViewManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 7 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 | « content/browser/web_contents/web_contents_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 08b4da90632f4172e3b296c674525ac3b568a2ab..7d13791c8beaae1d94274163889890c60cccda35 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1426,7 +1426,9 @@ void WebContentsImpl::CreateNewWindow(
} else {
// This makes |new_contents| act as a guest.
// For more info, see comment above class BrowserPluginGuest.
- int instance_id = GetBrowserPluginGuestManager()->get_next_instance_id();
+ int instance_id =
+ BrowserPluginGuestManager::FromBrowserContext(GetBrowserContext())->
+ GetNextInstanceID();
WebContentsImpl* new_contents_impl =
static_cast<WebContentsImpl*>(new_contents);
BrowserPluginGuest::CreateWithOpener(instance_id,
@@ -3949,13 +3951,6 @@ BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() const {
return browser_plugin_embedder_.get();
}
-BrowserPluginGuestManager*
- WebContentsImpl::GetBrowserPluginGuestManager() const {
- return static_cast<BrowserPluginGuestManager*>(
- GetBrowserContext()->GetUserData(
- browser_plugin::kBrowserPluginGuestManagerKeyName));
-}
-
void WebContentsImpl::ClearPowerSaveBlockers(
RenderFrameHost* render_frame_host) {
STLDeleteValues(&power_save_blockers_[render_frame_host]);
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698