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

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

Issue 2709793002: Remove SpotlightActions experimental flag. (Closed)
Patch Set: Remove experiment from plist 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 unified diff | Download patch
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 // Populate command line flag for the Payment Request API. 209 // Populate command line flag for the Payment Request API.
210 NSString* enable_payment_request = 210 NSString* enable_payment_request =
211 [defaults stringForKey:@"EnablePaymentRequest"]; 211 [defaults stringForKey:@"EnablePaymentRequest"];
212 if ([enable_payment_request isEqualToString:@"Enabled"]) { 212 if ([enable_payment_request isEqualToString:@"Enabled"]) {
213 command_line->AppendSwitch(switches::kEnablePaymentRequest); 213 command_line->AppendSwitch(switches::kEnablePaymentRequest);
214 } else if ([enable_payment_request isEqualToString:@"Disabled"]) { 214 } else if ([enable_payment_request isEqualToString:@"Disabled"]) {
215 command_line->AppendSwitch(switches::kDisablePaymentRequest); 215 command_line->AppendSwitch(switches::kDisablePaymentRequest);
216 } 216 }
217 217
218 // Populate command line flag for Spotlight Actions.
219 if ([defaults boolForKey:@"DisableSpotlightActions"]) {
220 command_line->AppendSwitch(switches::kDisableSpotlightActions);
221 }
222
223 // Populate command line flag for the Rename "Save Image" to "Download Image" 218 // Populate command line flag for the Rename "Save Image" to "Download Image"
224 // experiment. 219 // experiment.
225 NSString* enableDownloadRenaming = 220 NSString* enableDownloadRenaming =
226 [defaults stringForKey:@"EnableDownloadRenaming"]; 221 [defaults stringForKey:@"EnableDownloadRenaming"];
227 if ([enableDownloadRenaming isEqualToString:@"Enabled"]) { 222 if ([enableDownloadRenaming isEqualToString:@"Enabled"]) {
228 command_line->AppendSwitch(switches::kEnableDownloadImageRenaming); 223 command_line->AppendSwitch(switches::kEnableDownloadImageRenaming);
229 } else if ([enableDownloadRenaming isEqualToString:@"Disabled"]) { 224 } else if ([enableDownloadRenaming isEqualToString:@"Disabled"]) {
230 command_line->AppendSwitch(switches::kDisableDownloadImageRenaming); 225 command_line->AppendSwitch(switches::kDisableDownloadImageRenaming);
231 } 226 }
232 227
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 318 }
324 319
325 namespace testing { 320 namespace testing {
326 321
327 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) { 322 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) {
328 *count = arraysize(kFeatureEntries); 323 *count = arraysize(kFeatureEntries);
329 return kFeatureEntries; 324 return kFeatureEntries;
330 } 325 }
331 326
332 } // namespace testing 327 } // namespace testing
OLDNEW
« no previous file with comments | « ios/chrome/app/spotlight/actions_spotlight_manager.mm ('k') | ios/chrome/browser/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698