summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 95afc30..6491c56 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -96,10 +96,9 @@ class ReducePluginsWorkingSetTask : public Task {
virtual void Run() {
#if defined(OS_WIN)
for (PluginProcessHostIterator iter; !iter.Done(); ++iter) {
- PluginProcessHost* plugin = const_cast<PluginProcessHost*>(*iter);
- DCHECK(plugin->process());
- base::Process process(plugin->process());
- process.ReduceWorkingSet();
+ ChildProcessInfo* child = const_cast<PluginProcessHost*>(*iter);
+ DCHECK(child->process().handle());
+ child->process().ReduceWorkingSet();
}
#endif
}