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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 212223012: Disable app list folders by default for non-ChromeOS platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use a combobox option for chrome:flags Created 6 years, 8 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 | « chrome/app/generated_resources.grd ('k') | ui/app_list/app_list_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 switches::kTouchScrollingMode, 394 switches::kTouchScrollingMode,
395 switches::kTouchScrollingModeTouchcancel }, 395 switches::kTouchScrollingModeTouchcancel },
396 { IDS_FLAGS_TOUCH_SCROLLING_MODE_ABSORB_TOUCHMOVE, 396 { IDS_FLAGS_TOUCH_SCROLLING_MODE_ABSORB_TOUCHMOVE,
397 switches::kTouchScrollingMode, 397 switches::kTouchScrollingMode,
398 switches::kTouchScrollingModeAbsorbTouchmove }, 398 switches::kTouchScrollingModeAbsorbTouchmove },
399 { IDS_FLAGS_TOUCH_SCROLLING_MODE_SYNC_TOUCHMOVE, 399 { IDS_FLAGS_TOUCH_SCROLLING_MODE_SYNC_TOUCHMOVE,
400 switches::kTouchScrollingMode, 400 switches::kTouchScrollingMode,
401 switches::kTouchScrollingModeSyncTouchmove }, 401 switches::kTouchScrollingModeSyncTouchmove },
402 }; 402 };
403 403
404 const Experiment::Choice kEnableAppListFoldersChoices[] = {
405 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
406 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
407 app_list::switches::kEnableFolderUI, "" },
408 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
409 app_list::switches::kDisableFolderUI, "" },
410 };
411
404 // RECORDING USER METRICS FOR FLAGS: 412 // RECORDING USER METRICS FOR FLAGS:
405 // ----------------------------------------------------------------------------- 413 // -----------------------------------------------------------------------------
406 // The first line of the experiment is the internal name. If you'd like to 414 // The first line of the experiment is the internal name. If you'd like to
407 // gather statistics about the usage of your flag, you should append a marker 415 // gather statistics about the usage of your flag, you should append a marker
408 // comment to the end of the feature name, like so: 416 // comment to the end of the feature name, like so:
409 // "my-special-feature", // FLAGS:RECORD_UMA 417 // "my-special-feature", // FLAGS:RECORD_UMA
410 // 418 //
411 // After doing that, run 419 // After doing that, run
412 // tools/metrics/actions/extract_actions.py 420 // tools/metrics/actions/extract_actions.py
413 // to add the metric to actions.xml (which will enable UMA to record your 421 // to add the metric to actions.xml (which will enable UMA to record your
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 // visible on Win/Mac/CrOS but not on Linux GTK, which would be confusing. 1532 // visible on Win/Mac/CrOS but not on Linux GTK, which would be confusing.
1525 // TODO(mgiuca): Remove the #if when Aura is the default on Linux. 1533 // TODO(mgiuca): Remove the #if when Aura is the default on Linux.
1526 "enable-app-list", 1534 "enable-app-list",
1527 IDS_FLAGS_ENABLE_APP_LIST_NAME, 1535 IDS_FLAGS_ENABLE_APP_LIST_NAME,
1528 IDS_FLAGS_ENABLE_APP_LIST_DESCRIPTION, 1536 IDS_FLAGS_ENABLE_APP_LIST_DESCRIPTION,
1529 kOsLinux, 1537 kOsLinux,
1530 SINGLE_VALUE_TYPE(switches::kEnableAppList) 1538 SINGLE_VALUE_TYPE(switches::kEnableAppList)
1531 }, 1539 },
1532 #endif 1540 #endif
1533 { 1541 {
1534 "disable-app-list-folder-ui", 1542 "app-list-folder-ui",
1535 IDS_FLAGS_DISABLE_APP_LIST_FOLDER, 1543 IDS_FLAGS_ENABLE_APP_LIST_FOLDER,
1536 IDS_FLAGS_DISABLE_APP_LIST_FOLDER_DESCRIPTION, 1544 IDS_FLAGS_ENABLE_APP_LIST_FOLDER_DESCRIPTION,
1537 kOsWin | kOsLinux | kOsCrOS, 1545 kOsWin | kOsLinux | kOsCrOS,
tapted 2014/04/02 04:32:08 drive-by: This should be kOsAll. Otherwise when it
calamity 2014/04/02 04:53:53 Done.
1538 SINGLE_VALUE_TYPE(app_list::switches::kDisableFolderUI) 1546 MULTI_VALUE_TYPE(kEnableAppListFoldersChoices)
1539 }, 1547 },
1540 { 1548 {
1541 "disable-app-list-voice-search", 1549 "disable-app-list-voice-search",
1542 IDS_FLAGS_DISABLE_APP_LIST_VOICE_SEARCH, 1550 IDS_FLAGS_DISABLE_APP_LIST_VOICE_SEARCH,
1543 IDS_FLAGS_DISABLE_APP_LIST_VOICE_SEARCH_DESCRIPTION, 1551 IDS_FLAGS_DISABLE_APP_LIST_VOICE_SEARCH_DESCRIPTION,
1544 kOsCrOS, 1552 kOsCrOS,
1545 SINGLE_VALUE_TYPE(app_list::switches::kDisableVoiceSearch) 1553 SINGLE_VALUE_TYPE(app_list::switches::kDisableVoiceSearch)
1546 }, 1554 },
1547 { 1555 {
1548 "enable-app-list-hotword-always-on", 1556 "enable-app-list-hotword-always-on",
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 } 2372 }
2365 2373
2366 const Experiment* GetExperiments(size_t* count) { 2374 const Experiment* GetExperiments(size_t* count) {
2367 *count = num_experiments; 2375 *count = num_experiments;
2368 return experiments; 2376 return experiments;
2369 } 2377 }
2370 2378
2371 } // namespace testing 2379 } // namespace testing
2372 2380
2373 } // namespace about_flags 2381 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | ui/app_list/app_list_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698