| OLD | NEW | 
|---|
| 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 499     {flags_ui::kGenericExperimentChoiceDisabled, | 499     {flags_ui::kGenericExperimentChoiceDisabled, | 
| 500      switches::kNtpSwitchToExistingTab, "disabled"}, | 500      switches::kNtpSwitchToExistingTab, "disabled"}, | 
| 501     {flag_descriptions::kNtpSwitchToExistingTabMatchUrl, | 501     {flag_descriptions::kNtpSwitchToExistingTabMatchUrl, | 
| 502      switches::kNtpSwitchToExistingTab, "url"}, | 502      switches::kNtpSwitchToExistingTab, "url"}, | 
| 503     {flag_descriptions::kNtpSwitchToExistingTabMatchHost, | 503     {flag_descriptions::kNtpSwitchToExistingTabMatchHost, | 
| 504      switches::kNtpSwitchToExistingTab, "host"}, | 504      switches::kNtpSwitchToExistingTab, "host"}, | 
| 505 }; | 505 }; | 
| 506 #endif  // OS_ANDROID | 506 #endif  // OS_ANDROID | 
| 507 | 507 | 
| 508 #if defined(OS_CHROMEOS) | 508 #if defined(OS_CHROMEOS) | 
| 509 const FeatureEntry::Choice kForceTabletModeChoices[] = { | 509 const FeatureEntry::Choice kAshForceTabletModeChoices[] = { | 
| 510     {flags_ui::kGenericExperimentChoiceDefault, "", ""}, | 510     {flags_ui::kGenericExperimentChoiceDefault, "", ""}, | 
| 511     {flag_descriptions::kForceTabletModeTouchview, switches::kForceTabletMode, | 511     {flag_descriptions::kForceTabletModeTouchview, | 
| 512      switches::kForceTabletModeTouchView}, | 512      ash::switches::kAshForceTabletMode, | 
| 513     {flag_descriptions::kForceTabletModeClamshell, switches::kForceTabletMode, | 513      ash::switches::kAshForceTabletModeTouchView}, | 
| 514      switches::kForceTabletModeClamshell}, | 514     {flag_descriptions::kForceTabletModeClamshell, | 
| 515     {flag_descriptions::kForceTabletModeAuto, switches::kForceTabletMode, | 515      ash::switches::kAshForceTabletMode, | 
| 516      switches::kForceTabletModeAuto}, | 516      ash::switches::kAshForceTabletModeClamshell}, | 
|  | 517     {flag_descriptions::kForceTabletModeAuto, | 
|  | 518      ash::switches::kAshForceTabletMode, | 
|  | 519      ash::switches::kAshForceTabletModeAuto}, | 
| 517 }; | 520 }; | 
| 518 #endif  // OS_CHROMEOS | 521 #endif  // OS_CHROMEOS | 
| 519 | 522 | 
| 520 #if defined(OS_ANDROID) | 523 #if defined(OS_ANDROID) | 
| 521 const FeatureEntry::FeatureParam | 524 const FeatureEntry::FeatureParam | 
| 522     kContentSuggestionsCategoryOrderFeatureVariationGeneral[] = { | 525     kContentSuggestionsCategoryOrderFeatureVariationGeneral[] = { | 
| 523         {ntp_snippets::kCategoryOrderParameter, | 526         {ntp_snippets::kCategoryOrderParameter, | 
| 524          ntp_snippets::kCategoryOrderGeneral}, | 527          ntp_snippets::kCategoryOrderGeneral}, | 
| 525 }; | 528 }; | 
| 526 | 529 | 
| (...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2474      SINGLE_VALUE_TYPE(chromeos::switches::kEnableChromeVoxArcSupport)}, | 2477      SINGLE_VALUE_TYPE(chromeos::switches::kEnableChromeVoxArcSupport)}, | 
| 2475 #endif  // defined(OS_CHROMEOS) | 2478 #endif  // defined(OS_CHROMEOS) | 
| 2476 | 2479 | 
| 2477     {"enable-mojo-loading", flag_descriptions::kMojoLoadingName, | 2480     {"enable-mojo-loading", flag_descriptions::kMojoLoadingName, | 
| 2478      flag_descriptions::kMojoLoadingDescription, kOsAll, | 2481      flag_descriptions::kMojoLoadingDescription, kOsAll, | 
| 2479      FEATURE_VALUE_TYPE(features::kLoadingWithMojo)}, | 2482      FEATURE_VALUE_TYPE(features::kLoadingWithMojo)}, | 
| 2480 | 2483 | 
| 2481 #if defined(OS_CHROMEOS) | 2484 #if defined(OS_CHROMEOS) | 
| 2482     {"force-tablet-mode", flag_descriptions::kForceTabletModeName, | 2485     {"force-tablet-mode", flag_descriptions::kForceTabletModeName, | 
| 2483      flag_descriptions::kForceTabletModeDescription, kOsCrOS, | 2486      flag_descriptions::kForceTabletModeDescription, kOsCrOS, | 
| 2484      MULTI_VALUE_TYPE(kForceTabletModeChoices)}, | 2487      MULTI_VALUE_TYPE(kAshForceTabletModeChoices)}, | 
| 2485 #endif  // OS_CHROMEOS | 2488 #endif  // OS_CHROMEOS | 
| 2486 | 2489 | 
| 2487 #if defined(OS_ANDROID) | 2490 #if defined(OS_ANDROID) | 
| 2488     {"use-new-doodle-api", flag_descriptions::kUseNewDoodleApiName, | 2491     {"use-new-doodle-api", flag_descriptions::kUseNewDoodleApiName, | 
| 2489      flag_descriptions::kUseNewDoodleApiDescription, kOsAndroid, | 2492      flag_descriptions::kUseNewDoodleApiDescription, kOsAndroid, | 
| 2490      FEATURE_VALUE_TYPE(chrome::android::kUseNewDoodleApi)}, | 2493      FEATURE_VALUE_TYPE(chrome::android::kUseNewDoodleApi)}, | 
| 2491 #endif  // OS_ANDROID | 2494 #endif  // OS_ANDROID | 
| 2492 | 2495 | 
| 2493     {"delay-navigation", flag_descriptions::kDelayNavigationName, | 2496     {"delay-navigation", flag_descriptions::kDelayNavigationName, | 
| 2494      flag_descriptions::kDelayNavigationDescription, kOsAll, | 2497      flag_descriptions::kDelayNavigationDescription, kOsAll, | 
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2697 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2700 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 
| 2698 | 2701 | 
| 2699 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2702 const FeatureEntry* GetFeatureEntries(size_t* count) { | 
| 2700   *count = arraysize(kFeatureEntries); | 2703   *count = arraysize(kFeatureEntries); | 
| 2701   return kFeatureEntries; | 2704   return kFeatureEntries; | 
| 2702 } | 2705 } | 
| 2703 | 2706 | 
| 2704 }  // namespace testing | 2707 }  // namespace testing | 
| 2705 | 2708 | 
| 2706 }  // namespace about_flags | 2709 }  // namespace about_flags | 
| OLD | NEW | 
|---|