| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "cc/base/switches.h" | 18 #include "cc/base/switches.h" |
| 19 #include "chrome/browser/flags_storage.h" | 19 #include "chrome/browser/flags_storage.h" |
| 20 #include "chrome/common/chrome_content_client.h" | 20 #include "chrome/common/chrome_content_client.h" |
| 21 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
| 22 #include "components/nacl/common/nacl_switches.h" | 22 #include "components/nacl/common/nacl_switches.h" |
| 23 #include "content/public/browser/user_metrics.h" | 23 #include "content/public/browser/user_metrics.h" |
| 24 #include "extensions/common/switches.h" |
| 24 #include "grit/chromium_strings.h" | 25 #include "grit/chromium_strings.h" |
| 25 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
| 26 #include "grit/google_chrome_strings.h" | 27 #include "grit/google_chrome_strings.h" |
| 27 #include "media/base/media_switches.h" | 28 #include "media/base/media_switches.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
| 29 #include "ui/base/ui_base_switches.h" | 30 #include "ui/base/ui_base_switches.h" |
| 30 #include "ui/gfx/switches.h" | 31 #include "ui/gfx/switches.h" |
| 31 #include "ui/gl/gl_switches.h" | 32 #include "ui/gl/gl_switches.h" |
| 32 #include "ui/keyboard/keyboard_switches.h" | 33 #include "ui/keyboard/keyboard_switches.h" |
| 33 #include "ui/message_center/message_center_switches.h" | 34 #include "ui/message_center/message_center_switches.h" |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 IDS_FLAGS_EXPERIMENTAL_EXTENSION_APIS_NAME, | 546 IDS_FLAGS_EXPERIMENTAL_EXTENSION_APIS_NAME, |
| 546 IDS_FLAGS_EXPERIMENTAL_EXTENSION_APIS_DESCRIPTION, | 547 IDS_FLAGS_EXPERIMENTAL_EXTENSION_APIS_DESCRIPTION, |
| 547 kOsDesktop, | 548 kOsDesktop, |
| 548 SINGLE_VALUE_TYPE(switches::kEnableExperimentalExtensionApis) | 549 SINGLE_VALUE_TYPE(switches::kEnableExperimentalExtensionApis) |
| 549 }, | 550 }, |
| 550 { | 551 { |
| 551 "extensions-on-chrome-urls", | 552 "extensions-on-chrome-urls", |
| 552 IDS_FLAGS_EXTENSIONS_ON_CHROME_URLS_NAME, | 553 IDS_FLAGS_EXTENSIONS_ON_CHROME_URLS_NAME, |
| 553 IDS_FLAGS_EXTENSIONS_ON_CHROME_URLS_DESCRIPTION, | 554 IDS_FLAGS_EXTENSIONS_ON_CHROME_URLS_DESCRIPTION, |
| 554 kOsAll, | 555 kOsAll, |
| 555 SINGLE_VALUE_TYPE(switches::kExtensionsOnChromeURLs) | 556 SINGLE_VALUE_TYPE(extensions::switches::kExtensionsOnChromeURLs) |
| 556 }, | 557 }, |
| 557 { | 558 { |
| 558 "enable-fast-unload", | 559 "enable-fast-unload", |
| 559 IDS_FLAGS_ENABLE_FAST_UNLOAD_NAME, | 560 IDS_FLAGS_ENABLE_FAST_UNLOAD_NAME, |
| 560 IDS_FLAGS_ENABLE_FAST_UNLOAD_DESCRIPTION, | 561 IDS_FLAGS_ENABLE_FAST_UNLOAD_DESCRIPTION, |
| 561 kOsAll, | 562 kOsAll, |
| 562 SINGLE_VALUE_TYPE(switches::kEnableFastUnload) | 563 SINGLE_VALUE_TYPE(switches::kEnableFastUnload) |
| 563 }, | 564 }, |
| 564 { | 565 { |
| 565 "enable-adview", | 566 "enable-adview", |
| (...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 } | 2107 } |
| 2107 | 2108 |
| 2108 const Experiment* GetExperiments(size_t* count) { | 2109 const Experiment* GetExperiments(size_t* count) { |
| 2109 *count = num_experiments; | 2110 *count = num_experiments; |
| 2110 return experiments; | 2111 return experiments; |
| 2111 } | 2112 } |
| 2112 | 2113 |
| 2113 } // namespace testing | 2114 } // namespace testing |
| 2114 | 2115 |
| 2115 } // namespace about_flags | 2116 } // namespace about_flags |
| OLD | NEW |