Merge DownloadItem::SafetyState and DownloadDangerType

[email protected]
[email protected]


Review URL: https://chromiumcodereview.appspot.com/11693011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177304 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/download/download_manager_impl.cc b/content/browser/download/download_manager_impl.cc
index 32328b4..4b40c27 100644
--- a/content/browser/download/download_manager_impl.cc
+++ b/content/browser/download/download_manager_impl.cc
@@ -316,8 +316,7 @@
     // associative containers such as sets.
     it++;
 
-    if (download->GetSafetyState() == DownloadItem::DANGEROUS &&
-        download->IsPartialDownload()) {
+    if (download->IsDangerous() && download->IsPartialDownload()) {
       // The user hasn't accepted it, so we need to remove it
       // from the disk.  This may or may not result in it being
       // removed from the DownloadManager queues and deleted