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

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: nit change NULL to nullptr 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
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 6d08b3f26f9c220ce82c50cb8a3b482787034884..b6578d400f0577d2fc0a8b0b6c330bae6ff3407d 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.
Nathan Parker 2015/10/21 21:10:39 Is this necessary just on ChromOS, or everywhere?
Jialiu Lin 2015/10/22 01:38:54 Just for ChromeOS. In fact, this browsertest, as w
+ safe_browsing::DownloadProtectionService* GetDownloadProtectionService()
+ override {
+ return nullptr;
+ }
+
private:
bool opened_;
};

Powered by Google App Engine
This is Rietveld 408576698