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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 21930006: <webview>: Allocate the view instance ID from the WebView shim (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 7 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
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index f9dbe8e759dfd2f0d673cfba4dcc5c8c0b826fc8..186743ea7d7a1d2b57649cad805cea8d821b9985 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -91,10 +91,8 @@ static base::LazyInstance<PluginContainerMap> g_plugin_container_map =
BrowserPlugin::BrowserPlugin(
RenderViewImpl* render_view,
WebKit::WebFrame* frame,
- const WebPluginParams& params,
- int instance_id)
+ const WebPluginParams& params)
: guest_instance_id_(browser_plugin::kInstanceIDNone),
- instance_id_(instance_id),
render_view_(render_view->AsWeakPtr()),
render_view_routing_id_(render_view->GetRoutingID()),
container_(NULL),
@@ -397,7 +395,6 @@ void BrowserPlugin::OnInstanceIDAllocated(int guest_instance_id) {
void BrowserPlugin::Attach(scoped_ptr<base::DictionaryValue> extra_params) {
BrowserPluginHostMsg_Attach_Params attach_params;
- attach_params.browser_plugin_instance_id = instance_id_;
attach_params.focused = ShouldGuestBeFocused();
attach_params.visible = visible_;
attach_params.name = GetNameAttribute();
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/renderer/browser_plugin/browser_plugin_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698