Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 815 // Disables all experiments set on about:flags. Does not disable about:flags | 815 // Disables all experiments set on about:flags. Does not disable about:flags |
| 816 // itself. Useful if an experiment makes chrome crash at startup: One can start | 816 // itself. Useful if an experiment makes chrome crash at startup: One can start |
| 817 // chrome with --no-experiments, disable the problematic lab at about:flags and | 817 // chrome with --no-experiments, disable the problematic lab at about:flags and |
| 818 // then restart chrome without this switch again. | 818 // then restart chrome without this switch again. |
| 819 const char kNoExperiments[] = "no-experiments"; | 819 const char kNoExperiments[] = "no-experiments"; |
| 820 | 820 |
| 821 // whether or not it's actually the first run. Overrides kFirstRun in case | 821 // whether or not it's actually the first run. Overrides kFirstRun in case |
| 822 // you're for some reason tempted to pass them both. | 822 // you're for some reason tempted to pass them both. |
| 823 const char kNoFirstRun[] = "no-first-run"; | 823 const char kNoFirstRun[] = "no-first-run"; |
| 824 | 824 |
| 825 // Runs just the GPU process outside the sandbox. | |
|
jeremy
2010/12/02 08:33:56
How about:
Don't Sandbox the GPU process, does not
| |
| 826 const char kNoGpuSandbox[] = "no-gpu-sandbox"; | |
| 827 | |
| 825 // Support a separate switch that enables the v8 playback extension. | 828 // Support a separate switch that enables the v8 playback extension. |
| 826 // The extension causes javascript calls to Date.now() and Math.random() | 829 // The extension causes javascript calls to Date.now() and Math.random() |
| 827 // to return consistent values, such that subsequent loads of the same | 830 // to return consistent values, such that subsequent loads of the same |
| 828 // page will result in consistent js-generated data and XHR requests. | 831 // page will result in consistent js-generated data and XHR requests. |
| 829 // Pages may still be able to generate inconsistent data from plugins. | 832 // Pages may still be able to generate inconsistent data from plugins. |
| 830 const char kNoJsRandomness[] = "no-js-randomness"; | 833 const char kNoJsRandomness[] = "no-js-randomness"; |
| 831 | 834 |
| 832 // Don't send hyperlink auditing pings | 835 // Don't send hyperlink auditing pings |
| 833 const char kNoPings[] = "no-pings"; | 836 const char kNoPings[] = "no-pings"; |
| 834 | 837 |
| 835 // Don't use a proxy server, always make direct connections. Overrides any | 838 // Don't use a proxy server, always make direct connections. Overrides any |
| 836 // other proxy server flags that are passed. | 839 // other proxy server flags that are passed. |
| 837 const char kNoProxyServer[] = "no-proxy-server"; | 840 const char kNoProxyServer[] = "no-proxy-server"; |
| 838 | 841 |
| 839 // Don't send HTTP-Referer headers. | 842 // Don't send HTTP-Referer headers. |
| 840 const char kNoReferrers[] = "no-referrers"; | 843 const char kNoReferrers[] = "no-referrers"; |
| 841 | 844 |
| 842 // Runs the renderer outside the sandbox. | 845 // Disables the sandbox for all process types that are normally sandboxed. |
| 843 const char kNoSandbox[] = "no-sandbox"; | 846 const char kNoSandbox[] = "no-sandbox"; |
| 844 | 847 |
| 845 // Does not automatically open a browser window on startup (used when launching | 848 // Does not automatically open a browser window on startup (used when launching |
| 846 // Chrome for the purpose of hosting background apps). | 849 // Chrome for the purpose of hosting background apps). |
| 847 const char kNoStartupWindow[] = "no-startup-window"; | 850 const char kNoStartupWindow[] = "no-startup-window"; |
| 848 | 851 |
| 849 // Show a desktop notification that the cloud print token has expired and | 852 // Show a desktop notification that the cloud print token has expired and |
| 850 // that user needs to re-authenticate. | 853 // that user needs to re-authenticate. |
| 851 const char kNotifyCloudPrintTokenExpired[] = "notify-cp-token-expired"; | 854 const char kNotifyCloudPrintTokenExpired[] = "notify-cp-token-expired"; |
| 852 | 855 |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1360 | 1363 |
| 1361 // ----------------------------------------------------------------------------- | 1364 // ----------------------------------------------------------------------------- |
| 1362 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1365 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1363 // | 1366 // |
| 1364 // You were going to just dump your switches here, weren't you? Instead, | 1367 // You were going to just dump your switches here, weren't you? Instead, |
| 1365 // please put them in alphabetical order above, or in order inside the | 1368 // please put them in alphabetical order above, or in order inside the |
| 1366 // appropriate ifdef at the bottom. The order should match the header. | 1369 // appropriate ifdef at the bottom. The order should match the header. |
| 1367 // ----------------------------------------------------------------------------- | 1370 // ----------------------------------------------------------------------------- |
| 1368 | 1371 |
| 1369 } // namespace switches | 1372 } // namespace switches |
| OLD | NEW |