Chromium Code Reviews| Index: chrome/browser/download/download_file_manager.cc |
| =================================================================== |
| --- chrome/browser/download/download_file_manager.cc (revision 90024) |
| +++ 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" |
| @@ -145,7 +146,8 @@ |
| manager->CreateDownloadItem(info); |
| bool hash_needed = g_browser_process->safe_browsing_service()-> |
| - DownloadBinHashNeeded(); |
| + DownloadBinHashNeeded(manager->profile()->GetPrefs()->GetBoolean( |
| + prefs::kSafeBrowsingEnabled)); |
|
mattm
2011/06/23 01:24:25
Why do some things check the pref directly and oth
Miranda Callahan
2011/06/23 14:05:26
That's a really good question. :-P I'm going to re
|
| BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
| NewRunnableMethod(this, &DownloadFileManager::CreateDownloadFile, |