summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_util.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-24 19:29:28 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-24 19:29:28 +0000
commitb0ab1d465fb0dc6d8592bd8a8f16f1c0e9cbc7aa (patch)
treebabe2d723ff9a93f973bde63cfeddd809be7b1d7 /chrome/browser/download/download_util.cc
parent9d9f653d7ac6a2f083dd9acd2ff7a12a5c202398 (diff)
downloadchromium_src-b0ab1d465fb0dc6d8592bd8a8f16f1c0e9cbc7aa.zip
chromium_src-b0ab1d465fb0dc6d8592bd8a8f16f1c0e9cbc7aa.tar.gz
chromium_src-b0ab1d465fb0dc6d8592bd8a8f16f1c0e9cbc7aa.tar.bz2
This change makes incognito downloads show up in the downloads page of an incognito window. These downloads are not persisted to history; hence they do not persist between incognito sessions.
There is no special UI for the incognito downloads. That can be added later. BUG=28702 Review URL: http://codereview.chromium.org/650065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39910 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_util.cc')
-rw-r--r--chrome/browser/download/download_util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc
index 611b199..8ea8f10 100644
--- a/chrome/browser/download/download_util.cc
+++ b/chrome/browser/download/download_util.cc
@@ -319,6 +319,7 @@ DictionaryValue* CreateDownloadItemValue(DownloadItem* download, int id) {
l10n_util::WrapStringWithLTRFormatting(&file_name);
file_value->SetString(L"file_name", file_name);
file_value->SetString(L"url", download->url().spec());
+ file_value->SetBoolean(L"otr", download->is_otr());
if (download->state() == DownloadItem::IN_PROGRESS) {
if (download->safety_state() == DownloadItem::DANGEROUS) {