| 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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 // preferences value and is primarily intended for testing. The value of this | 838 // preferences value and is primarily intended for testing. The value of this |
| 839 // switch is the number of tabs to wait until loaded before 'load completed' is | 839 // switch is the number of tabs to wait until loaded before 'load completed' is |
| 840 // sent to the ui_test. | 840 // sent to the ui_test. |
| 841 const char kRestoreLastSession[] = "restore-last-session"; | 841 const char kRestoreLastSession[] = "restore-last-session"; |
| 842 | 842 |
| 843 // Disable saving pages as HTML-only, disable saving pages as HTML Complete | 843 // Disable saving pages as HTML-only, disable saving pages as HTML Complete |
| 844 // (with a directory of sub-resources). Enable only saving pages as MHTML. | 844 // (with a directory of sub-resources). Enable only saving pages as MHTML. |
| 845 // See http://crbug.com/120416 for how to remove this switch. | 845 // See http://crbug.com/120416 for how to remove this switch. |
| 846 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; | 846 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; |
| 847 | 847 |
| 848 // If present, safebrowsing only performs update when | |
| 849 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. | |
| 850 // This is used for testing only. | |
| 851 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; | |
| 852 | |
| 853 // TODO(lzheng): Remove this flag once the feature works fine | |
| 854 // (http://crbug.com/74848). | |
| 855 // | |
| 856 // Disables safebrowsing feature that checks download url and downloads | |
| 857 // content's hash to make sure the content are not malicious. | |
| 858 const char kSbDisableDownloadProtection[] = | |
| 859 "safebrowsing-disable-download-protection"; | |
| 860 | |
| 861 // Disables safebrowsing feature that checks for blacklisted extensions. | |
| 862 const char kSbDisableExtensionBlacklist[] = | |
| 863 "safebrowsing-disable-extension-blacklist"; | |
| 864 | |
| 865 // List of comma-separated sha256 hashes of executable files which the | |
| 866 // download-protection service should treat as "dangerous." For a file to | |
| 867 // show a warning, it also must be considered a dangerous filetype and not | |
| 868 // be whitelisted otherwise (by signature or URL) and must be on a supported | |
| 869 // OS. Hashes are in hex. This is used for manual testing when looking | |
| 870 // for ways to by-pass download protection. | |
| 871 const char kSbManualDownloadBlacklist[] = | |
| 872 "safebrowsing-manual-download-blacklist"; | |
| 873 | |
| 874 // Causes the process to run as a service process. | 848 // Causes the process to run as a service process. |
| 875 const char kServiceProcess[] = "service"; | 849 const char kServiceProcess[] = "service"; |
| 876 | 850 |
| 877 // If true the app list will be shown. | 851 // If true the app list will be shown. |
| 878 const char kShowAppList[] = "show-app-list"; | 852 const char kShowAppList[] = "show-app-list"; |
| 879 | 853 |
| 880 // Does not show an infobar when an extension attaches to a page using | 854 // Does not show an infobar when an extension attaches to a page using |
| 881 // chrome.debugger page. Required to attach to extension background pages. | 855 // chrome.debugger page. Required to attach to extension background pages. |
| 882 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api"; | 856 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api"; |
| 883 | 857 |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1324 | 1298 |
| 1325 // ----------------------------------------------------------------------------- | 1299 // ----------------------------------------------------------------------------- |
| 1326 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. | 1300 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. |
| 1327 // | 1301 // |
| 1328 // You were going to just dump your switches here, weren't you? Instead, please | 1302 // You were going to just dump your switches here, weren't you? Instead, please |
| 1329 // put them in alphabetical order above, or in order inside the appropriate | 1303 // put them in alphabetical order above, or in order inside the appropriate |
| 1330 // ifdef at the bottom. The order should match the header. | 1304 // ifdef at the bottom. The order should match the header. |
| 1331 // ----------------------------------------------------------------------------- | 1305 // ----------------------------------------------------------------------------- |
| 1332 | 1306 |
| 1333 } // namespace switches | 1307 } // namespace switches |
| OLD | NEW |