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> |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
14 #include "base/metrics/sparse_histogram.h" | 14 #include "base/metrics/sparse_histogram.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "cc/base/switches.h" | 20 #include "cc/base/switches.h" |
21 #include "chrome/browser/flags_storage.h" | 21 #include "chrome/browser/flags_storage.h" |
22 #include "chrome/common/chrome_content_client.h" | 22 #include "chrome/common/chrome_content_client.h" |
23 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
24 #include "chrome/grit/generated_resources.h" | 24 #include "chrome/grit/generated_resources.h" |
25 #include "components/autofill/core/common/autofill_switches.h" | 25 #include "components/autofill/core/common/autofill_switches.h" |
26 #include "components/cloud_devices/common/cloud_devices_switches.h" | 26 #include "components/cloud_devices/common/cloud_devices_switches.h" |
27 #include "components/metrics/metrics_hashes.h" | 27 #include "components/metrics/metrics_hashes.h" |
28 #include "components/nacl/common/nacl_switches.h" | 28 #include "components/nacl/common/nacl_switches.h" |
29 #include "components/omnibox/omnibox_switches.h" | 29 #include "components/omnibox/omnibox_switches.h" |
30 #include "components/plugins/common/plugins_switches.h" | |
30 #include "components/proximity_auth/switches.h" | 31 #include "components/proximity_auth/switches.h" |
31 #include "components/search/search_switches.h" | 32 #include "components/search/search_switches.h" |
32 #include "content/public/browser/user_metrics.h" | 33 #include "content/public/browser/user_metrics.h" |
33 #include "media/base/media_switches.h" | 34 #include "media/base/media_switches.h" |
34 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
35 #include "ui/base/ui_base_switches.h" | 36 #include "ui/base/ui_base_switches.h" |
36 #include "ui/display/display_switches.h" | 37 #include "ui/display/display_switches.h" |
37 #include "ui/events/event_switches.h" | 38 #include "ui/events/event_switches.h" |
38 #include "ui/gfx/switches.h" | 39 #include "ui/gfx/switches.h" |
39 #include "ui/gl/gl_switches.h" | 40 #include "ui/gl/gl_switches.h" |
(...skipping 2010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2050 }, | 2051 }, |
2051 { | 2052 { |
2052 "reduced-referrer-granularity", | 2053 "reduced-referrer-granularity", |
2053 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_NAME, | 2054 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_NAME, |
2054 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_DESCRIPTION, | 2055 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_DESCRIPTION, |
2055 kOsAll, | 2056 kOsAll, |
2056 SINGLE_VALUE_TYPE(switches::kReducedReferrerGranularity) | 2057 SINGLE_VALUE_TYPE(switches::kReducedReferrerGranularity) |
2057 }, | 2058 }, |
2058 #if defined(ENABLE_PLUGINS) | 2059 #if defined(ENABLE_PLUGINS) |
2059 { | 2060 { |
2060 "enable-plugin-power-saver", | 2061 "plugin-power-saver", |
Lei Zhang
2015/03/30 18:45:31
This change will likely make users who have it ena
tommycli
2015/03/30 18:59:43
Done. Not intentional.
| |
2061 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_NAME, | 2062 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_NAME, |
2062 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_DESCRIPTION, | 2063 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_DESCRIPTION, |
2063 kOsDesktop, | 2064 kOsDesktop, |
2064 SINGLE_VALUE_TYPE(switches::kEnablePluginPowerSaver) | 2065 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePluginPowerSaver, |
2066 switches::kDisablePluginPowerSaver) | |
2065 }, | 2067 }, |
2066 #endif | 2068 #endif |
2067 #if defined(OS_CHROMEOS) | 2069 #if defined(OS_CHROMEOS) |
2068 { | 2070 { |
2069 "disable-new-zip-unpacker", | 2071 "disable-new-zip-unpacker", |
2070 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_NAME, | 2072 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_NAME, |
2071 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION, | 2073 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION, |
2072 kOsCrOS, | 2074 kOsCrOS, |
2073 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) | 2075 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) |
2074 }, | 2076 }, |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2867 } | 2869 } |
2868 | 2870 |
2869 const Experiment* GetExperiments(size_t* count) { | 2871 const Experiment* GetExperiments(size_t* count) { |
2870 *count = num_experiments; | 2872 *count = num_experiments; |
2871 return experiments; | 2873 return experiments; |
2872 } | 2874 } |
2873 | 2875 |
2874 } // namespace testing | 2876 } // namespace testing |
2875 | 2877 |
2876 } // namespace about_flags | 2878 } // namespace about_flags |
OLD | NEW |