| 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 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 const char kAppsCheckoutURL[] = "apps-checkout-url"; | 80 const char kAppsCheckoutURL[] = "apps-checkout-url"; |
| 81 | 81 |
| 82 // The URL that the webstore APIs download extensions from. | 82 // The URL that the webstore APIs download extensions from. |
| 83 // Note: the URL must contain one '%s' for the extension ID. | 83 // Note: the URL must contain one '%s' for the extension ID. |
| 84 const char kAppsGalleryDownloadURL[] = "apps-gallery-download-url"; | 84 const char kAppsGalleryDownloadURL[] = "apps-gallery-download-url"; |
| 85 | 85 |
| 86 // A setting to cause extension/app installs from the webstore skip the normal | 86 // A setting to cause extension/app installs from the webstore skip the normal |
| 87 // confirmation dialog. A value of 'accept' means to always act as if the dialog | 87 // confirmation dialog. A value of 'accept' means to always act as if the dialog |
| 88 // was accepted, and 'cancel' means to always act as if the dialog was | 88 // was accepted, and 'cancel' means to always act as if the dialog was |
| 89 // cancelled. | 89 // cancelled. |
| 90 // |
| 91 // TODO (rdevlin.cronin): Remove this. |
| 92 // This is not a good use of a command-line flag, as it would be equally |
| 93 // effective as a global boolean. Additionally, this opens up a dangerous way |
| 94 // for attackers to append a commandline flag and circumvent all user action for |
| 95 // installing an extension. |
| 90 const char kAppsGalleryInstallAutoConfirmForTests[] = | 96 const char kAppsGalleryInstallAutoConfirmForTests[] = |
| 91 "apps-gallery-install-auto-confirm-for-tests"; | 97 "apps-gallery-install-auto-confirm-for-tests"; |
| 92 | 98 |
| 93 // The URL to use for the gallery link in the app launcher. | 99 // The URL to use for the gallery link in the app launcher. |
| 94 const char kAppsGalleryURL[] = "apps-gallery-url"; | 100 const char kAppsGalleryURL[] = "apps-gallery-url"; |
| 95 | 101 |
| 96 // The update url used by gallery/webstore extensions. | 102 // The update url used by gallery/webstore extensions. |
| 97 const char kAppsGalleryUpdateURL[] = "apps-gallery-update-url"; | 103 const char kAppsGalleryUpdateURL[] = "apps-gallery-update-url"; |
| 98 | 104 |
| 99 // Value of GAIA auth code for --force-app-mode. | 105 // Value of GAIA auth code for --force-app-mode. |
| (...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1650 | 1656 |
| 1651 // ----------------------------------------------------------------------------- | 1657 // ----------------------------------------------------------------------------- |
| 1652 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1658 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1653 // | 1659 // |
| 1654 // You were going to just dump your switches here, weren't you? Instead, please | 1660 // You were going to just dump your switches here, weren't you? Instead, please |
| 1655 // put them in alphabetical order above, or in order inside the appropriate | 1661 // put them in alphabetical order above, or in order inside the appropriate |
| 1656 // ifdef at the bottom. The order should match the header. | 1662 // ifdef at the bottom. The order should match the header. |
| 1657 // ----------------------------------------------------------------------------- | 1663 // ----------------------------------------------------------------------------- |
| 1658 | 1664 |
| 1659 } // namespace switches | 1665 } // namespace switches |
| OLD | NEW |