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

Unified Diff: content/browser/download/download_file_manager.cc

Issue 10542089: Power save blocker: switch to new implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | « content/browser/download/download_file_impl.cc ('k') | content/browser/download/download_file_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file_manager.cc
===================================================================
--- content/browser/download/download_file_manager.cc (revision 141149)
+++ content/browser/download/download_file_manager.cc (working copy)
@@ -57,9 +57,10 @@
return new DownloadFileImpl(
info, stream.Pass(), new DownloadRequestHandle(request_handle),
download_manager, calculate_hash,
- scoped_ptr<PowerSaveBlocker>(
- new PowerSaveBlocker(
- PowerSaveBlocker::kPowerSaveBlockPreventSystemSleep)).Pass(),
+ scoped_ptr<content::PowerSaveBlocker>(
+ new content::PowerSaveBlocker(
+ content::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension,
+ "Downloading")).Pass(),
rvargas (doing something else) 2012/06/09 19:53:19 nit: Can we say something like "download in progre
Mike Mammarella 2012/06/10 01:09:49 Done.
bound_net_log);
}
« no previous file with comments | « content/browser/download/download_file_impl.cc ('k') | content/browser/download/download_file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698