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

Side by Side Diff: ios/chrome/browser/about_flags.mm

Issue 2562643003: Enable RL by default (Closed)
Patch Set: feedback Created 4 years 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 unified diff | Download patch
« ios/build/chrome_build.gni ('K') | « ios/build/chrome_build.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Implementation of about_flags for iOS that sets flags based on experimental 5 // Implementation of about_flags for iOS that sets flags based on experimental
6 // settings. 6 // settings.
7 7
8 #include "ios/chrome/browser/about_flags.h" 8 #include "ios/chrome/browser/about_flags.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // Populate command line flag for the Payment Request API. 228 // Populate command line flag for the Payment Request API.
229 NSString* enable_payment_request = 229 NSString* enable_payment_request =
230 [defaults stringForKey:@"EnablePaymentRequest"]; 230 [defaults stringForKey:@"EnablePaymentRequest"];
231 if ([enable_payment_request isEqualToString:@"Enabled"]) { 231 if ([enable_payment_request isEqualToString:@"Enabled"]) {
232 command_line->AppendSwitch(switches::kEnablePaymentRequest); 232 command_line->AppendSwitch(switches::kEnablePaymentRequest);
233 } else if ([enable_payment_request isEqualToString:@"Disabled"]) { 233 } else if ([enable_payment_request isEqualToString:@"Disabled"]) {
234 command_line->AppendSwitch(switches::kDisablePaymentRequest); 234 command_line->AppendSwitch(switches::kDisablePaymentRequest);
235 } 235 }
236 236
237 // Populate command line flags from Reading List.
238 if ([defaults boolForKey:@"EnableReadingList"]) {
239 command_line->AppendSwitch(reading_list::switches::kEnableReadingList);
240 } else {
241 command_line->AppendSwitch(reading_list::switches::kDisableReadingList);
242 }
243
244 // Populate command line flag for Spotlight Actions. 237 // Populate command line flag for Spotlight Actions.
245 if ([defaults boolForKey:@"DisableSpotlightActions"]) { 238 if ([defaults boolForKey:@"DisableSpotlightActions"]) {
246 command_line->AppendSwitch(switches::kDisableSpotlightActions); 239 command_line->AppendSwitch(switches::kDisableSpotlightActions);
247 } 240 }
248 241
249 // Populate command line flag for the Rename "Save Image" to "Download Image" 242 // Populate command line flag for the Rename "Save Image" to "Download Image"
250 // experiment. 243 // experiment.
251 NSString* enableDownloadRenaming = 244 NSString* enableDownloadRenaming =
252 [defaults stringForKey:@"EnableDownloadRenaming"]; 245 [defaults stringForKey:@"EnableDownloadRenaming"];
253 if ([enableDownloadRenaming isEqualToString:@"Enabled"]) { 246 if ([enableDownloadRenaming isEqualToString:@"Enabled"]) {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 334 }
342 335
343 namespace testing { 336 namespace testing {
344 337
345 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) { 338 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) {
346 *count = arraysize(kFeatureEntries); 339 *count = arraysize(kFeatureEntries);
347 return kFeatureEntries; 340 return kFeatureEntries;
348 } 341 }
349 342
350 } // namespace testing 343 } // namespace testing
OLDNEW
« ios/build/chrome_build.gni ('K') | « ios/build/chrome_build.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698