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

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

Issue 1147843002: [iOS] Enable support for finch experiment for Open from Clipboard. (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 | « no previous file | 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 5fd5926b221ac0801702b117c4cf16aaaa14cbbc..1697bb59ae1154b019834253ce6fec3fbef832ca 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -31,7 +31,10 @@ bool IsAlertOnBackgroundUploadEnabled() {
bool IsOpenFromClipboardEnabled() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- return command_line->HasSwitch(switches::kEnableIOSOpenFromClipboard);
+ if (command_line->HasSwitch(switches::kEnableIOSOpenFromClipboard))
+ return true;
+ return base::FieldTrialList::FindFullName("IOSOpenFromClipboard") ==
+ "Enabled";
}
bool IsWKWebViewEnabled() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698