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

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

Issue 1131303003: [iOS] Upstream experimental_flags::IsAlertOnBackgroundUploadEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 f837e62ddf8a83b7af54f59c1eb09aa3731c7f1f..6adfb739566cd02c8f21b3061d8d0347c97eb8c2 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -15,8 +15,18 @@
#include "components/variations/variations_associated_data.h"
#include "ios/chrome/browser/chrome_switches.h"
+namespace {
+NSString* const kEnableAlertOnBackgroundUpload =
+ @"EnableAlertsOnBackgroundUpload";
+} // namespace
+
namespace experimental_flags {
+bool IsAlertOnBackgroundUploadEnabled() {
+ return [[NSUserDefaults standardUserDefaults]
+ boolForKey:kEnableAlertOnBackgroundUpload];
+}
+
bool IsOpenFromClipboardEnabled() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
return command_line->HasSwitch(switches::kEnableIOSOpenFromClipboard);
« 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