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

Unified Diff: chrome/browser/download/notification/download_notification_browsertest.cc

Issue 1348683003: enable download protection on CrOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable download protection in test Created 5 years, 2 months 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/download_protection_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/notification/download_notification_browsertest.cc
diff --git a/chrome/browser/download/notification/download_notification_browsertest.cc b/chrome/browser/download/notification/download_notification_browsertest.cc
index 4b72ddafcd3267bea4e296b8e9fd4a2e6d265bc3..24b4b389a58c5de3fb7b27d7e9a2b428121dfb96 100644
--- a/chrome/browser/download/notification/download_notification_browsertest.cc
+++ b/chrome/browser/download/notification/download_notification_browsertest.cc
@@ -230,6 +230,13 @@ class TestChromeDownloadManagerDelegate : public ChromeDownloadManagerDelegate {
// Return if the download is opened.
bool opened() const { return opened_; }
+ protected:
+ // Disable DownloadProtectionService in order to disable content checking.
+ safe_browsing::DownloadProtectionService* GetDownloadProtectionService()
+ override {
+ return NULL;
asanka 2015/10/21 13:53:21 Nit: nullptr instead of NULL.
Jialiu Lin 2015/10/21 20:14:55 Done.
+ }
+
private:
bool opened_;
};
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/download_protection_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698