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

Unified Diff: chrome/browser/download/download_types.cc

Issue 7484061: Use the suggested name from an anchor's 'download' attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2011 Created 9 years, 5 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
Index: chrome/browser/download/download_types.cc
diff --git a/chrome/browser/download/download_types.cc b/chrome/browser/download/download_types.cc
index 543555cef8eca9a4adce6c7b63dcf3afdd0af257..0634ab69136b5fe782921d886f4fcf88489e22de 100644
--- a/chrome/browser/download/download_types.cc
+++ b/chrome/browser/download/download_types.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -15,7 +15,8 @@ DownloadSaveInfo::DownloadSaveInfo() {
DownloadSaveInfo::DownloadSaveInfo(const DownloadSaveInfo& info)
: file_path(info.file_path),
- file_stream(info.file_stream) {
+ file_stream(info.file_stream),
+ suggested_name(info.suggested_name) {
}
DownloadSaveInfo::~DownloadSaveInfo() {
@@ -24,5 +25,6 @@ DownloadSaveInfo::~DownloadSaveInfo() {
DownloadSaveInfo& DownloadSaveInfo::operator=(const DownloadSaveInfo& info) {
file_path = info.file_path;
file_stream = info.file_stream;
+ suggested_name = info.suggested_name;
return *this;
}

Powered by Google App Engine
This is Rietveld 408576698