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

Unified Diff: content/public/browser/download_manager_delegate.cc

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Patch set 5 + rebase Created 3 years, 10 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: content/public/browser/download_manager_delegate.cc
diff --git a/content/public/browser/download_manager_delegate.cc b/content/public/browser/download_manager_delegate.cc
index 9351ce227112181992a2f2d9e20d72921e5e4bba..0b9fef37bf099b3899d3dd3c7def4c1a64146c5b 100644
--- a/content/public/browser/download_manager_delegate.cc
+++ b/content/public/browser/download_manager_delegate.cc
@@ -4,6 +4,8 @@
#include "content/public/browser/download_manager_delegate.h"
+#include <string>
+
#include "content/public/browser/download_item.h"
namespace content {
@@ -45,4 +47,8 @@ DownloadManagerDelegate::ApplicationClientIdForFileScanning() const {
DownloadManagerDelegate::~DownloadManagerDelegate() {}
+bool DownloadManagerDelegate::ShouldBlockAllDownloads() const {
asanka 2017/02/09 19:25:01 Let's do all the blocking in //chrome.
MAD 2017/02/14 18:15:48 Can you point me where //chrome could block the do
+ return false;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698