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

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

Issue 2765373002: CrOS: Move force UI mode switch from switches to ash switches. (Closed)
Patch Set: Created 3 years, 9 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 (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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 {IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kNtpSwitchToExistingTab, 512 {IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kNtpSwitchToExistingTab,
513 "disabled"}, 513 "disabled"},
514 {IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_MATCH_URL, 514 {IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_MATCH_URL,
515 switches::kNtpSwitchToExistingTab, "url"}, 515 switches::kNtpSwitchToExistingTab, "url"},
516 {IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_MATCH_HOST, 516 {IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_MATCH_HOST,
517 switches::kNtpSwitchToExistingTab, "host"}, 517 switches::kNtpSwitchToExistingTab, "host"},
518 }; 518 };
519 #endif // OS_ANDROID 519 #endif // OS_ANDROID
520 520
521 #if defined(OS_CHROMEOS) 521 #if defined(OS_CHROMEOS)
522 const FeatureEntry::Choice kForceTabletModeChoices[] = { 522 const FeatureEntry::Choice kAshForceTabletModeChoices[] = {
523 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, 523 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
524 {IDS_FLAGS_FORCE_TABLET_MODE_TOUCHVIEW, switches::kForceTabletMode, 524 {IDS_FLAGS_FORCE_TABLET_MODE_TOUCHVIEW, ash::switches::kAshForceTabletMode,
525 switches::kForceTabletModeTouchView}, 525 ash::switches::kAshForceTabletModeTouchView},
526 {IDS_FLAGS_FORCE_TABLET_MODE_CLAMSHELL, switches::kForceTabletMode, 526 {IDS_FLAGS_FORCE_TABLET_MODE_CLAMSHELL, ash::switches::kAshForceTabletMode,
527 switches::kForceTabletModeClamshell}, 527 ash::switches::kAshForceTabletModeClamshell},
528 {IDS_FLAGS_FORCE_TABLET_MODE_AUTO, switches::kForceTabletMode, 528 {IDS_FLAGS_FORCE_TABLET_MODE_AUTO, ash::switches::kAshForceTabletMode,
529 switches::kForceTabletModeAuto}, 529 ash::switches::kAshForceTabletModeAuto},
530 }; 530 };
531 #endif // OS_CHROMEOS 531 #endif // OS_CHROMEOS
532 532
533 #if defined(OS_ANDROID) 533 #if defined(OS_ANDROID)
534 const FeatureEntry::FeatureParam 534 const FeatureEntry::FeatureParam
535 kContentSuggestionsCategoryOrderFeatureVariationGeneral[] = { 535 kContentSuggestionsCategoryOrderFeatureVariationGeneral[] = {
536 {ntp_snippets::kCategoryOrderParameter, 536 {ntp_snippets::kCategoryOrderParameter,
537 ntp_snippets::kCategoryOrderGeneral}, 537 ntp_snippets::kCategoryOrderGeneral},
538 }; 538 };
539 539
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after
2389 IDS_FLAGS_ENABLE_CHROMEVOX_ARC_SUPPORT_NAME, 2389 IDS_FLAGS_ENABLE_CHROMEVOX_ARC_SUPPORT_NAME,
2390 IDS_FLAGS_ENABLE_CHROMEVOX_ARC_SUPPORT_DESCRIPTION, kOsCrOS, 2390 IDS_FLAGS_ENABLE_CHROMEVOX_ARC_SUPPORT_DESCRIPTION, kOsCrOS,
2391 SINGLE_VALUE_TYPE(chromeos::switches::kEnableChromeVoxArcSupport)}, 2391 SINGLE_VALUE_TYPE(chromeos::switches::kEnableChromeVoxArcSupport)},
2392 #endif // defined(OS_CHROMEOS) 2392 #endif // defined(OS_CHROMEOS)
2393 2393
2394 {"enable-mojo-loading", IDS_FLAGS_MOJO_LOADING_NAME, 2394 {"enable-mojo-loading", IDS_FLAGS_MOJO_LOADING_NAME,
2395 IDS_FLAGS_MOJO_LOADING_DESCRIPTION, kOsAll, 2395 IDS_FLAGS_MOJO_LOADING_DESCRIPTION, kOsAll,
2396 FEATURE_VALUE_TYPE(features::kLoadingWithMojo)}, 2396 FEATURE_VALUE_TYPE(features::kLoadingWithMojo)},
2397 2397
2398 #if defined(OS_CHROMEOS) 2398 #if defined(OS_CHROMEOS)
2399 {"force-tablet-mode", IDS_FLAGS_FORCE_TABLET_MODE_NAME, 2399 {"ash-force-tablet-mode", IDS_FLAGS_FORCE_TABLET_MODE_NAME,
Daniel Erat 2017/03/28 19:30:12 just to make sure i understand this: changing this
sammiequon 2017/03/28 20:32:00 I see. Would this work? It wouldn't have "ash-" bu
Daniel Erat 2017/03/28 20:35:33 yes, i think that what you have now is fine (at le
2400 IDS_FLAGS_FORCE_TABLET_MODE_DESCRIPTION, kOsCrOS, 2400 IDS_FLAGS_FORCE_TABLET_MODE_DESCRIPTION, kOsCrOS,
2401 MULTI_VALUE_TYPE(kForceTabletModeChoices)}, 2401 MULTI_VALUE_TYPE(kAshForceTabletModeChoices)},
2402 #endif // OS_CHROMEOS 2402 #endif // OS_CHROMEOS
2403 2403
2404 #if defined(OS_ANDROID) 2404 #if defined(OS_ANDROID)
2405 {"use-new-doodle-api", IDS_FLAGS_USE_NEW_DOODLE_API_NAME, 2405 {"use-new-doodle-api", IDS_FLAGS_USE_NEW_DOODLE_API_NAME,
2406 IDS_FLAGS_USE_NEW_DOODLE_API_DESCRIPTION, kOsAndroid, 2406 IDS_FLAGS_USE_NEW_DOODLE_API_DESCRIPTION, kOsAndroid,
2407 FEATURE_VALUE_TYPE(chrome::android::kUseNewDoodleApi)}, 2407 FEATURE_VALUE_TYPE(chrome::android::kUseNewDoodleApi)},
2408 #endif // OS_ANDROID 2408 #endif // OS_ANDROID
2409 2409
2410 // NOTE: Adding new command-line switches requires adding corresponding 2410 // NOTE: Adding new command-line switches requires adding corresponding
2411 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2411 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2608 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2608 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2609 2609
2610 const FeatureEntry* GetFeatureEntries(size_t* count) { 2610 const FeatureEntry* GetFeatureEntries(size_t* count) {
2611 *count = arraysize(kFeatureEntries); 2611 *count = arraysize(kFeatureEntries);
2612 return kFeatureEntries; 2612 return kFeatureEntries;
2613 } 2613 }
2614 2614
2615 } // namespace testing 2615 } // namespace testing
2616 2616
2617 } // namespace about_flags 2617 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698