| 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/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 "show-nonsecure-animated"; | 642 "show-nonsecure-animated"; |
| 643 const char kMaterialSecurityVerboseShowNonSecureNonAnimated[] = | 643 const char kMaterialSecurityVerboseShowNonSecureNonAnimated[] = |
| 644 "show-nonsecure-nonanimated"; | 644 "show-nonsecure-nonanimated"; |
| 645 | 645 |
| 646 // Forces the maximum disk space to be used by the media cache, in bytes. | 646 // Forces the maximum disk space to be used by the media cache, in bytes. |
| 647 const char kMediaCacheSize[] = "media-cache-size"; | 647 const char kMediaCacheSize[] = "media-cache-size"; |
| 648 | 648 |
| 649 // Enables Media Router. | 649 // Enables Media Router. |
| 650 const char kMediaRouter[] = "media-router"; | 650 const char kMediaRouter[] = "media-router"; |
| 651 | 651 |
| 652 // Enables histograming of tasks served by MessageLoop. See | |
| 653 // about:histograms/Loop for results, which show frequency of messages on each | |
| 654 // thread, including APC count, object signalling count, etc. | |
| 655 const char kMessageLoopHistogrammer[] = "message-loop-histogrammer"; | |
| 656 | |
| 657 // Enables the recording of metrics reports but disables reporting. In contrast | 652 // Enables the recording of metrics reports but disables reporting. In contrast |
| 658 // to kDisableMetrics, this executes all the code that a normal client would | 653 // to kDisableMetrics, this executes all the code that a normal client would |
| 659 // use for reporting, except the report is dropped rather than sent to the | 654 // use for reporting, except the report is dropped rather than sent to the |
| 660 // server. This is useful for finding issues in the metrics code during UI and | 655 // server. This is useful for finding issues in the metrics code during UI and |
| 661 // performance tests. | 656 // performance tests. |
| 662 const char kMetricsRecordingOnly[] = "metrics-recording-only"; | 657 const char kMetricsRecordingOnly[] = "metrics-recording-only"; |
| 663 | 658 |
| 664 // Allows setting a different destination ID for connection-monitoring GCM | 659 // Allows setting a different destination ID for connection-monitoring GCM |
| 665 // messages. Useful when running against a non-prod management server. | 660 // messages. Useful when running against a non-prod management server. |
| 666 const char kMonitoringDestinationID[] = "monitoring-destination-id"; | 661 const char kMonitoringDestinationID[] = "monitoring-destination-id"; |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1338 } | 1333 } |
| 1339 | 1334 |
| 1340 #if defined(OS_CHROMEOS) | 1335 #if defined(OS_CHROMEOS) |
| 1341 bool PowerOverlayEnabled() { | 1336 bool PowerOverlayEnabled() { |
| 1342 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1337 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1343 ::switches::kEnablePowerOverlay); | 1338 ::switches::kEnablePowerOverlay); |
| 1344 } | 1339 } |
| 1345 #endif | 1340 #endif |
| 1346 | 1341 |
| 1347 // ----------------------------------------------------------------------------- | 1342 // ----------------------------------------------------------------------------- |
| 1348 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1343 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. |
| 1349 // | 1344 // |
| 1350 // You were going to just dump your switches here, weren't you? Instead, please | 1345 // You were going to just dump your switches here, weren't you? Instead, please |
| 1351 // put them in alphabetical order above, or in order inside the appropriate | 1346 // put them in alphabetical order above, or in order inside the appropriate |
| 1352 // ifdef at the bottom. The order should match the header. | 1347 // ifdef at the bottom. The order should match the header. |
| 1353 // ----------------------------------------------------------------------------- | 1348 // ----------------------------------------------------------------------------- |
| 1354 | 1349 |
| 1355 } // namespace switches | 1350 } // namespace switches |
| OLD | NEW |