summaryrefslogtreecommitdiffstats
path: root/content/browser/plugin_data_remover_impl.cc
diff options
context:
space:
mode:
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-04 21:01:19 +0000
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-04 21:01:19 +0000
commit54c23f1c253cba357cebf71611ffee959e72141c (patch)
tree15a7f61f10c63f34a7e6a74563fe98eac63c298e /content/browser/plugin_data_remover_impl.cc
parent90d5f1d7df0cacf70e39c189d5205d94fbde7da3 (diff)
downloadchromium_src-54c23f1c253cba357cebf71611ffee959e72141c.zip
chromium_src-54c23f1c253cba357cebf71611ffee959e72141c.tar.gz
chromium_src-54c23f1c253cba357cebf71611ffee959e72141c.tar.bz2
Fix the PpapiPluginProcessHost::BrokerClient implementation in PluginDataRemoverImpl::Context.
BUG=None TEST=Pepper Flash ClearSiteData should work on Windows. Review URL: http://codereview.chromium.org/10310021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135425 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_data_remover_impl.cc')
-rw-r--r--content/browser/plugin_data_remover_impl.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/content/browser/plugin_data_remover_impl.cc b/content/browser/plugin_data_remover_impl.cc
index f4eab9f..a6d1479 100644
--- a/content/browser/plugin_data_remover_impl.cc
+++ b/content/browser/plugin_data_remover_impl.cc
@@ -159,14 +159,15 @@ class PluginDataRemoverImpl::Context
// PpapiPluginProcessHost::BrokerClient implementation.
virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
int* renderer_id) OVERRIDE {
+ *renderer_handle = base::kNullProcessHandle;
*renderer_id = 0;
}
virtual void OnPpapiChannelOpened(
- base::ProcessHandle plugin_process_handle,
+ base::ProcessHandle /* plugin_process_handle */,
const IPC::ChannelHandle& channel_handle,
int /* child_id */) OVERRIDE {
- if (plugin_process_handle != base::kNullProcessHandle)
+ if (!channel_handle.name.empty())
ConnectToChannel(channel_handle, true);
// Balancing the AddRef call.