Index: components/quirks/quirks_manager.h |
diff --git a/components/quirks/quirks_manager.h b/components/quirks/quirks_manager.h |
index 1edf7b8267002759201a32ae3f2b6f7181556f1d..ea5bbce0e14686075ac23a93e6bd53f5fa8d444d 100644 |
--- a/components/quirks/quirks_manager.h |
+++ b/components/quirks/quirks_manager.h |
@@ -78,6 +78,9 @@ class QUIRKS_EXPORT QuirksManager { |
// This directory must already exist. |
virtual base::FilePath GetDownloadDisplayProfileDirectory() const = 0; |
+ // Whether downloads are allowed by enterprise device policy. |
+ virtual bool DevicePolicyEnabled() const = 0; |
+ |
// Gets days since first login, returned via callback. |
virtual void GetDaysSinceOobe(DaysSinceOobeCallback callback) const = 0; |
@@ -147,6 +150,9 @@ class QUIRKS_EXPORT QuirksManager { |
void CreateClient(int64_t product_id, |
const RequestFinishedCallback& on_request_finished); |
+ // Whether downloads allowed by cmd line flag and device policy. |
+ bool QuirksEnabled(); |
+ |
// Records time of most recent server check. |
void SetLastServerCheck(int64_t product_id, const base::Time& last_check); |