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

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

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk Created 9 years 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/save_file.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_file_manager.cc
diff --git a/content/browser/download/save_file_manager.cc b/content/browser/download/save_file_manager.cc
index 99a9f4921e2be99864456c087e746f6190ecae6f..467df60853920d0fd7b84326c15ff17fb82e45e3 100644
--- a/content/browser/download/save_file_manager.cc
+++ b/content/browser/download/save_file_manager.cc
@@ -213,10 +213,11 @@ void SaveFileManager::SendCancelRequest(int save_id) {
void SaveFileManager::StartSave(SaveFileCreateInfo* info) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
DCHECK(info);
- SaveFile* save_file = new SaveFile(info);
+ // No need to calculate hash.
+ SaveFile* save_file = new SaveFile(info, false);
// TODO(phajdan.jr): We should check the return value and handle errors here.
- save_file->Initialize(false); // No need to calculate hash.
+ save_file->Initialize();
DCHECK(!LookupSaveFile(info->save_id));
save_file_map_[info->save_id] = save_file;
« no previous file with comments | « content/browser/download/save_file.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698