summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/chrome_plugin_host.cc
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 21:36:44 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 21:36:44 +0000
commitc84a78578ea53490282bfb128fd844b120f926b5 (patch)
tree5bd1d8218ecf5d7863b33b3873a100386f61a96e /chrome/plugin/chrome_plugin_host.cc
parentca11e335df5305cdb46cfa8f27091cf9d70fb5b6 (diff)
downloadchromium_src-c84a78578ea53490282bfb128fd844b120f926b5.zip
chromium_src-c84a78578ea53490282bfb128fd844b120f926b5.tar.gz
chromium_src-c84a78578ea53490282bfb128fd844b120f926b5.tar.bz2
Gears File Drag Drop
r24899 now keys the child security policy database based on renderer id, rather than renderer process id. Update gears drag drop to use the renderer id for the file policy access checks. This is a clone for submission of of noel's original CL http://codereview.chromium.org/195079 BUG=7995 Review URL: http://codereview.chromium.org/196145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26397 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/chrome_plugin_host.cc')
-rw-r--r--chrome/plugin/chrome_plugin_host.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/plugin/chrome_plugin_host.cc b/chrome/plugin/chrome_plugin_host.cc
index b724ca0..95a4862 100644
--- a/chrome/plugin/chrome_plugin_host.cc
+++ b/chrome/plugin/chrome_plugin_host.cc
@@ -362,8 +362,8 @@ CPError STDCALL CPB_AllowFileDrop(
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 @@ CPError STDCALL CPB_AllowFileDrop(
bool allowed = false;
if (!PluginThread::current()->Send(
- new PluginProcessHostMsg_AccessFiles(pid, files, &allowed))) {
+ new PluginProcessHostMsg_AccessFiles(renderer, files, &allowed))) {
return CPERR_FAILURE;
}