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

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

Issue 8468020: Propagate the SafeBrowsing download protection verdict to the DownloadItem. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Address Ben's comment. Created 9 years, 1 month 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_extension_api.cc
diff --git a/chrome/browser/download/download_extension_api.cc b/chrome/browser/download/download_extension_api.cc
index dda5e78c0727505d96b6616c7e96994813457365..fab816cd6a39919d82cc2bfa5c6cceb878a57f21 100644
--- a/chrome/browser/download/download_extension_api.cc
+++ b/chrome/browser/download/download_extension_api.cc
@@ -57,6 +57,7 @@ const char kDangerFile[] = "file";
const char kDangerKey[] = "danger";
const char kDangerSafe[] = "safe";
const char kDangerUrl[] = "url";
+const char kDangerContent[] = "content";
asanka 2011/11/16 18:34:05 Nit: These should be ordered alphabetically.
noelutz 2011/11/16 23:15:07 Done.
const char kEndTimeKey[] = "endTime";
const char kErrorKey[] = "error";
const char kFileSizeKey[] = "fileSize";
@@ -82,6 +83,7 @@ const char* DangerString(DownloadItem::DangerType danger) {
case DownloadItem::NOT_DANGEROUS: return kDangerSafe;
case DownloadItem::DANGEROUS_FILE: return kDangerFile;
case DownloadItem::DANGEROUS_URL: return kDangerUrl;
+ case DownloadItem::DANGEROUS_CONTENT: return kDangerContent;
Randy Smith (Not in Mondays) 2011/11/16 18:04:04 I think (Asanka?) that we also want to export the
asanka 2011/11/16 18:34:05 I can see how it could be useful. However I'm not
noelutz 2011/11/16 23:15:07 Propagated the maybe.
default:
NOTREACHED();
return "";

Powered by Google App Engine
This is Rietveld 408576698