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

Unified Diff: chrome/browser/browser.cc

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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/app/result_codes.h ('k') | chrome/browser/browser_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
===================================================================
--- chrome/browser/browser.cc (revision 5371)
+++ chrome/browser/browser.cc (working copy)
@@ -95,7 +95,7 @@
for (PluginProcessHostIterator iter; !iter.Done(); ++iter) {
PluginProcessHost* plugin = const_cast<PluginProcessHost*>(*iter);
DCHECK(plugin->process());
- Process process(plugin->process());
+ base::Process process(plugin->process());
process.ReduceWorkingSet();
}
}
@@ -115,14 +115,14 @@
// We're idle. Release browser and renderer unused pages.
// Handle the Browser.
- Process process(GetCurrentProcess());
+ base::Process process(GetCurrentProcess());
process.ReduceWorkingSet();
// Handle the Renderer(s).
RenderProcessHost::iterator renderer_iter;
for (renderer_iter = RenderProcessHost::begin(); renderer_iter !=
- RenderProcessHost::end(); renderer_iter++) {
- Process process(renderer_iter->second->process());
+ RenderProcessHost::end(); renderer_iter++) {
+ base::Process process = renderer_iter->second->process();
process.ReduceWorkingSet();
}
« no previous file with comments | « chrome/app/result_codes.h ('k') | chrome/browser/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698