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

Unified Diff: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.h

Issue 2728773006: Settings reset prompt: do not show the prompt due to policy. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.h
diff --git a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.h b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.h
index 207447e5702e1c8dbe3df31cc1cd57293d31eb14..771531a8786237212f223d016126b633e34366eb 100644
--- a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.h
+++ b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.h
@@ -47,6 +47,7 @@ class SettingsResetPromptModel {
NO_RESET_REQUIRED_DUE_TO_ALREADY_PROMPTED_FOR_SETTING = 3,
NO_RESET_REQUIRED_DUE_TO_RECENTLY_PROMPTED = 4,
NO_RESET_REQUIRED_DUE_TO_OTHER_SETTING_REQUIRING_RESET = 5,
+ NO_RESET_REQUIRED_DUE_TO_POLICY = 6,
};
using ExtensionMap =
@@ -135,6 +136,9 @@ class SettingsResetPromptModel {
// Return true if any setting's reset state is set to |RESET_REQUIRED|.
bool SomeSettingRequiresReset() const;
+ bool SomeSettingIsManaged() const;
+ bool SomeExtensionMustRemainEnabled() const;
+
Profile* const profile_;
SettingsResetPromptPrefsManager prefs_manager_;
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698