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

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

Issue 8251008: Add screen power save block level. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 9 years, 2 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 | « no previous file | content/browser/power_save_blocker.h » ('j') | content/browser/power_save_blocker.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/base_file.cc
diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
index 07c18f83d82ee627ab0ea7c61da2f19c72cb32a2..c1daaed032733fb12835dd5dc50b876282d21847 100644
--- a/content/browser/download/base_file.cc
+++ b/content/browser/download/base_file.cc
@@ -194,7 +194,7 @@ BaseFile::BaseFile(const FilePath& full_path,
referrer_url_(referrer_url),
file_stream_(file_stream),
bytes_so_far_(received_bytes),
- power_save_blocker_(true),
+ power_save_blocker_(PowerSaveBlocker::kPowerSaveBlockPreventSystemSleep),
calculate_hash_(false),
detached_(false) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
« no previous file with comments | « no previous file | content/browser/power_save_blocker.h » ('j') | content/browser/power_save_blocker.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698