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

Unified Diff: components/quirks/quirks_manager.h

Issue 1775023002: Enterprise policy to prevent queries to the Quirks Server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove default_for_enterprise_users Created 4 years, 8 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 | « components/policy/resources/policy_templates.json ('k') | components/quirks/quirks_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « components/policy/resources/policy_templates.json ('k') | components/quirks/quirks_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698