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

Unified Diff: components/policy/core/common/cloud/user_cloud_policy_manager.h

Issue 2806453002: Don't set a default value for the NTPContentSuggestionsEnabled policy if ChromeHome is enabled (Closed)
Patch Set: argh Created 3 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
Index: components/policy/core/common/cloud/user_cloud_policy_manager.h
diff --git a/components/policy/core/common/cloud/user_cloud_policy_manager.h b/components/policy/core/common/cloud/user_cloud_policy_manager.h
index a8bfd4535d8ed2c3d8ba71363926c93955d94145..26dcde307baf630a9a0a0d528e871def4e69f8b9 100644
--- a/components/policy/core/common/cloud/user_cloud_policy_manager.h
+++ b/components/policy/core/common/cloud/user_cloud_policy_manager.h
@@ -48,6 +48,9 @@ class POLICY_EXPORT UserCloudPolicyManager : public CloudPolicyManager {
const scoped_refptr<base::SequencedTaskRunner>& io_task_runner);
~UserCloudPolicyManager() override;
+ // TODO(treib): Remove this again. crbug.com/708191
+ void SetChromeHomeEnabled() { chrome_home_enabled_ = true; }
+
// ConfigurationPolicyProvider overrides:
void Shutdown() override;
@@ -93,6 +96,9 @@ class POLICY_EXPORT UserCloudPolicyManager : public CloudPolicyManager {
// Manages external data referenced by policies.
std::unique_ptr<CloudExternalDataManager> external_data_manager_;
+ // TODO(treib): Remove this again. crbug.com/708191
+ bool chrome_home_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManager);
};

Powered by Google App Engine
This is Rietveld 408576698