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

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

Issue 2611003002: Autoscroll new background tabs on iPad (Closed)
Patch Set: Updated comments Created 3 years, 11 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
« no previous file with comments | « no previous file | ios/chrome/browser/chrome_switches.h » ('j') | 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 command_line->AppendSwitchASCII(switches::kLsoUrl, 91 command_line->AppendSwitchASCII(switches::kLsoUrl,
92 BUILDFLAG(GOOGLE_TEST_LSO_URL)); 92 BUILDFLAG(GOOGLE_TEST_LSO_URL));
93 command_line->AppendSwitchASCII(switches::kSyncServiceURL, 93 command_line->AppendSwitchASCII(switches::kSyncServiceURL,
94 BUILDFLAG(GOOGLE_TEST_SYNC_URL)); 94 BUILDFLAG(GOOGLE_TEST_SYNC_URL));
95 command_line->AppendSwitchASCII(switches::kOAuth2ClientID, 95 command_line->AppendSwitchASCII(switches::kOAuth2ClientID,
96 BUILDFLAG(GOOGLE_TEST_OAUTH_CLIENT_ID)); 96 BUILDFLAG(GOOGLE_TEST_OAUTH_CLIENT_ID));
97 command_line->AppendSwitchASCII(switches::kOAuth2ClientSecret, 97 command_line->AppendSwitchASCII(switches::kOAuth2ClientSecret,
98 BUILDFLAG(GOOGLE_TEST_OAUTH_CLIENT_SECRET)); 98 BUILDFLAG(GOOGLE_TEST_OAUTH_CLIENT_SECRET));
99 } 99 }
100 100
101 // Populate command line flag for the tab strip auto scroll new tabs
102 // experiment from the configuration plist.
103 if ([defaults boolForKey:@"TabStripAutoScrollNewTabsDisabled"])
104 command_line->AppendSwitch(switches::kDisableTabStripAutoScrollNewTabs);
105
101 // Populate command line flag for the Tab Switcher experiment from the 106 // Populate command line flag for the Tab Switcher experiment from the
102 // configuration plist. 107 // configuration plist.
103 NSString* enableTabSwitcher = [defaults stringForKey:@"EnableTabSwitcher"]; 108 NSString* enableTabSwitcher = [defaults stringForKey:@"EnableTabSwitcher"];
104 if ([enableTabSwitcher isEqualToString:@"Enabled"]) { 109 if ([enableTabSwitcher isEqualToString:@"Enabled"]) {
105 command_line->AppendSwitch(switches::kEnableTabSwitcher); 110 command_line->AppendSwitch(switches::kEnableTabSwitcher);
106 } else if ([enableTabSwitcher isEqualToString:@"Disabled"]) { 111 } else if ([enableTabSwitcher isEqualToString:@"Disabled"]) {
107 command_line->AppendSwitch(switches::kDisableTabSwitcher); 112 command_line->AppendSwitch(switches::kDisableTabSwitcher);
108 } 113 }
109 114
110 // Populate command line flag for the SnapshotLRUCache experiment from the 115 // Populate command line flag for the SnapshotLRUCache experiment from the
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 } 343 }
339 344
340 namespace testing { 345 namespace testing {
341 346
342 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) { 347 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) {
343 *count = arraysize(kFeatureEntries); 348 *count = arraysize(kFeatureEntries);
344 return kFeatureEntries; 349 return kFeatureEntries;
345 } 350 }
346 351
347 } // namespace testing 352 } // namespace testing
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698