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

Unified Diff: ios/chrome/browser/experimental_flags.mm

Issue 2386143004: Upstream method to check if MDM integration support is enabled. (Closed)
Patch Set: Created 4 years, 2 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 | « ios/chrome/browser/experimental_flags.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/experimental_flags.mm
diff --git a/ios/chrome/browser/experimental_flags.mm b/ios/chrome/browser/experimental_flags.mm
index 42a4bd9eae4cca504d2bbf9e643f3578212cca69..32975b428b551f88c4fe9d568ea67d18d89c5f43 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -29,6 +29,7 @@ NSString* const kHeuristicsForPasswordGeneration =
NSString* const kEnableReadingList = @"EnableReadingList";
NSString* const kUpdatePasswordUIDisabled = @"UpdatePasswordUIDisabled";
NSString* const kEnableNewClearBrowsingDataUI = @"EnableNewClearBrowsingDataUI";
+NSString* const kMDMIntegrationDisabled = @"MDMIntegrationDisabled";
} // namespace
namespace experimental_flags {
@@ -180,4 +181,9 @@ bool IsSpotlightActionsEnabled() {
return !command_line->HasSwitch(switches::kDisableSpotlightActions);
}
+bool IsMDMIntegrationEnabled() {
+ return ![[NSUserDefaults standardUserDefaults]
+ boolForKey:kMDMIntegrationDisabled];
+}
+
} // namespace experimental_flags
« no previous file with comments | « ios/chrome/browser/experimental_flags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698