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

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

Issue 322433004: Create VTVideoDecodeAccelerator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation issues. Created 6 years, 6 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 // associate the version with a FieldTrial. FieldTrials don't currently support 420 // associate the version with a FieldTrial. FieldTrials don't currently support
421 // flag=value flags. 421 // flag=value flags.
422 const Experiment::Choice kMalwareInterstitialVersions[] = { 422 const Experiment::Choice kMalwareInterstitialVersions[] = {
423 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 423 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
424 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V2, 424 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V2,
425 switches::kMalwareInterstitialVersionV2, "" }, 425 switches::kMalwareInterstitialVersionV2, "" },
426 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3, 426 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3,
427 switches::kMalwareInterstitialVersionV3, "" }, 427 switches::kMalwareInterstitialVersionV3, "" },
428 }; 428 };
429 429
430 #if defined(OS_CHROMEOS)
scherkus (not reviewing) 2014/06/09 16:02:06 bad merge? looks like you have a bunch of related
sandersd (OOO until July 31) 2014/06/10 01:02:44 Ugh, that's no good. Probably happened when I tran
431 const Experiment::Choice kEnableFileManagerMTPChoices[] = {
432 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
433 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
434 chromeos::switches::kEnableFileManagerMTP, "true" },
435 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
436 chromeos::switches::kEnableFileManagerMTP, "false" }
437 };
438 #endif
439
440 // RECORDING USER METRICS FOR FLAGS: 430 // RECORDING USER METRICS FOR FLAGS:
441 // ----------------------------------------------------------------------------- 431 // -----------------------------------------------------------------------------
442 // The first line of the experiment is the internal name. If you'd like to 432 // The first line of the experiment is the internal name. If you'd like to
443 // gather statistics about the usage of your flag, you should append a marker 433 // gather statistics about the usage of your flag, you should append a marker
444 // comment to the end of the feature name, like so: 434 // comment to the end of the feature name, like so:
445 // "my-special-feature", // FLAGS:RECORD_UMA 435 // "my-special-feature", // FLAGS:RECORD_UMA
446 // 436 //
447 // After doing that, run 437 // After doing that, run
448 // tools/metrics/actions/extract_actions.py 438 // tools/metrics/actions/extract_actions.py
449 // to add the metric to actions.xml (which will enable UMA to record your 439 // to add the metric to actions.xml (which will enable UMA to record your
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 "disable-display-color-calibration", 1021 "disable-display-color-calibration",
1032 IDS_FLAGS_DISABLE_DISPLAY_COLOR_CALIBRATION_NAME, 1022 IDS_FLAGS_DISABLE_DISPLAY_COLOR_CALIBRATION_NAME,
1033 IDS_FLAGS_DISABLE_DISPLAY_COLOR_CALIBRATION_DESCRIPTION, 1023 IDS_FLAGS_DISABLE_DISPLAY_COLOR_CALIBRATION_DESCRIPTION,
1034 kOsCrOS, 1024 kOsCrOS,
1035 SINGLE_VALUE_TYPE(ui::switches::kDisableDisplayColorCalibration), 1025 SINGLE_VALUE_TYPE(ui::switches::kDisableDisplayColorCalibration),
1036 }, 1026 },
1037 #endif // defined(OS_CHROMEOS) 1027 #endif // defined(OS_CHROMEOS)
1038 { "disable-accelerated-video-decode", 1028 { "disable-accelerated-video-decode",
1039 IDS_FLAGS_DISABLE_ACCELERATED_VIDEO_DECODE_NAME, 1029 IDS_FLAGS_DISABLE_ACCELERATED_VIDEO_DECODE_NAME,
1040 IDS_FLAGS_DISABLE_ACCELERATED_VIDEO_DECODE_DESCRIPTION, 1030 IDS_FLAGS_DISABLE_ACCELERATED_VIDEO_DECODE_DESCRIPTION,
1041 kOsWin | kOsCrOS, 1031 kOsMac | kOsWin | kOsCrOS,
scherkus (not reviewing) 2014/06/09 16:02:06 is this change needed or does --ignore-gpu-blackli
sandersd (OOO until July 31) 2014/06/10 01:02:44 Done.
1042 SINGLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode), 1032 SINGLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode),
1043 }, 1033 },
1044 #if defined(USE_ASH) 1034 #if defined(USE_ASH)
1045 { 1035 {
1046 "ash-debug-shortcuts", 1036 "ash-debug-shortcuts",
1047 IDS_FLAGS_DEBUG_SHORTCUTS_NAME, 1037 IDS_FLAGS_DEBUG_SHORTCUTS_NAME,
1048 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, 1038 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION,
1049 kOsAll, 1039 kOsAll,
1050 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), 1040 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts),
1051 }, 1041 },
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 IDS_FLAGS_ENABLE_TOUCH_DRAG_DROP_NAME, 1138 IDS_FLAGS_ENABLE_TOUCH_DRAG_DROP_NAME,
1149 IDS_FLAGS_ENABLE_TOUCH_DRAG_DROP_DESCRIPTION, 1139 IDS_FLAGS_ENABLE_TOUCH_DRAG_DROP_DESCRIPTION,
1150 kOsWin | kOsCrOS, 1140 kOsWin | kOsCrOS,
1151 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchDragDrop, 1141 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchDragDrop,
1152 switches::kDisableTouchDragDrop) 1142 switches::kDisableTouchDragDrop)
1153 }, 1143 },
1154 { 1144 {
1155 "enable-touch-editing", 1145 "enable-touch-editing",
1156 IDS_FLAGS_ENABLE_TOUCH_EDITING_NAME, 1146 IDS_FLAGS_ENABLE_TOUCH_EDITING_NAME,
1157 IDS_FLAGS_ENABLE_TOUCH_EDITING_DESCRIPTION, 1147 IDS_FLAGS_ENABLE_TOUCH_EDITING_DESCRIPTION,
1158 kOsCrOS | kOsWin | kOsLinux, 1148 kOsCrOS,
1159 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchEditing, 1149 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchEditing,
1160 switches::kDisableTouchEditing) 1150 switches::kDisableTouchEditing)
1161 }, 1151 },
1162 { 1152 {
1163 "enable-suggestions-service", 1153 "enable-suggestions-service",
1164 IDS_FLAGS_ENABLE_SUGGESTIONS_SERVICE_NAME, 1154 IDS_FLAGS_ENABLE_SUGGESTIONS_SERVICE_NAME,
1165 IDS_FLAGS_ENABLE_SUGGESTIONS_SERVICE_DESCRIPTION, 1155 IDS_FLAGS_ENABLE_SUGGESTIONS_SERVICE_DESCRIPTION,
1166 kOsAndroid | kOsCrOS, 1156 kOsAndroid | kOsCrOS,
1167 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSuggestionsService, 1157 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSuggestionsService,
1168 switches::kDisableSuggestionsService) 1158 switches::kDisableSuggestionsService)
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 IDS_FLAGS_DISABLE_EMBEDDED_SHARED_WORKER_DESCRIPTION, 1777 IDS_FLAGS_DISABLE_EMBEDDED_SHARED_WORKER_DESCRIPTION,
1788 kOsDesktop, 1778 kOsDesktop,
1789 SINGLE_VALUE_TYPE(switches::kDisableEmbeddedSharedWorker) 1779 SINGLE_VALUE_TYPE(switches::kDisableEmbeddedSharedWorker)
1790 }, 1780 },
1791 #if defined(OS_CHROMEOS) 1781 #if defined(OS_CHROMEOS)
1792 { 1782 {
1793 "enable-filemanager-mtp", 1783 "enable-filemanager-mtp",
1794 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_NAME, 1784 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_NAME,
1795 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_DESCRIPTION, 1785 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_DESCRIPTION,
1796 kOsCrOS, 1786 kOsCrOS,
1797 MULTI_VALUE_TYPE(kEnableFileManagerMTPChoices) 1787 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFileManagerMTP)
1798 }, 1788 },
1799 #endif 1789 #endif
1800 // TODO(tyoshino): Remove this temporary flag and command line switch. See 1790 // TODO(tyoshino): Remove this temporary flag and command line switch. See
1801 // crbug.com/366483 for the target milestone. 1791 // crbug.com/366483 for the target milestone.
1802 { 1792 {
1803 "allow-insecure-websocket-from-https-origin", 1793 "allow-insecure-websocket-from-https-origin",
1804 IDS_FLAGS_ALLOW_INSECURE_WEBSOCKET_FROM_HTTPS_ORIGIN_NAME, 1794 IDS_FLAGS_ALLOW_INSECURE_WEBSOCKET_FROM_HTTPS_ORIGIN_NAME,
1805 IDS_FLAGS_ALLOW_INSECURE_WEBSOCKET_FROM_HTTPS_ORIGIN_DESCRIPTION, 1795 IDS_FLAGS_ALLOW_INSECURE_WEBSOCKET_FROM_HTTPS_ORIGIN_DESCRIPTION,
1806 kOsAll, 1796 kOsAll,
1807 SINGLE_VALUE_TYPE(switches::kAllowInsecureWebSocketFromHttpsOrigin) 1797 SINGLE_VALUE_TYPE(switches::kAllowInsecureWebSocketFromHttpsOrigin)
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
2412 } 2402 }
2413 2403
2414 const Experiment* GetExperiments(size_t* count) { 2404 const Experiment* GetExperiments(size_t* count) {
2415 *count = num_experiments; 2405 *count = num_experiments;
2416 return experiments; 2406 return experiments;
2417 } 2407 }
2418 2408
2419 } // namespace testing 2409 } // namespace testing
2420 2410
2421 } // namespace about_flags 2411 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698