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

Unified Diff: chrome/plugin/chrome_plugin_host.cc

Issue 195079: Gears File Drag Drop (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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/common/plugin_messages_internal.h ('k') | chrome/plugin/plugin_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/chrome_plugin_host.cc
===================================================================
--- chrome/plugin/chrome_plugin_host.cc (revision 26101)
+++ chrome/plugin/chrome_plugin_host.cc (working copy)
@@ -362,8 +362,8 @@
if (!webplugin || !file_drag_data)
return CPERR_INVALID_PARAMETER;
- const int pid = webplugin->GetRendererProcessId();
- if (!pid)
+ const int renderer = webplugin->GetRendererId();
+ if (renderer == -1)
return CPERR_FAILURE;
static const char kDelimiter('\b');
@@ -372,7 +372,7 @@
bool allowed = false;
if (!PluginThread::current()->Send(
- new PluginProcessHostMsg_AccessFiles(pid, files, &allowed))) {
+ new PluginProcessHostMsg_AccessFiles(renderer, files, &allowed))) {
return CPERR_FAILURE;
}
« no previous file with comments | « chrome/common/plugin_messages_internal.h ('k') | chrome/plugin/plugin_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698