Index: chrome/browser/download/download_file_manager.cc |
=================================================================== |
--- chrome/browser/download/download_file_manager.cc (revision 92179) |
+++ chrome/browser/download/download_file_manager.cc (working copy) |
@@ -20,6 +20,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/safe_browsing/safe_browsing_service.h" |
#include "chrome/browser/tab_contents/tab_util.h" |
+#include "chrome/common/pref_names.h" |
#include "content/browser/browser_thread.h" |
#include "content/browser/renderer_host/resource_dispatcher_host.h" |
#include "content/browser/tab_contents/tab_contents.h" |
@@ -144,12 +145,9 @@ |
manager->CreateDownloadItem(info); |
-#if defined(ENABLE_SAFE_BROWSING) |
mattm
2011/07/12 21:41:58
dropped merge
Miranda Callahan
2011/07/13 18:13:51
Done.
|
- bool hash_needed = g_browser_process->safe_browsing_service()-> |
- DownloadBinHashNeeded(); |
-#else |
- bool hash_needed = false; |
-#endif |
+ bool hash_needed = manager->profile()->GetPrefs()->GetBoolean( |
+ prefs::kSafeBrowsingEnabled) && |
+ g_browser_process->safe_browsing_service()->DownloadBinHashNeeded(); |
BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
NewRunnableMethod(this, &DownloadFileManager::CreateDownloadFile, |