Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 175263003: Add chrome.webstore API methods to allow sites to see progress of installation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Antony's Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 1673
1668 // ----------------------------------------------------------------------------- 1674 // -----------------------------------------------------------------------------
1669 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1675 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1670 // 1676 //
1671 // You were going to just dump your switches here, weren't you? Instead, please 1677 // You were going to just dump your switches here, weren't you? Instead, please
1672 // put them in alphabetical order above, or in order inside the appropriate 1678 // put them in alphabetical order above, or in order inside the appropriate
1673 // ifdef at the bottom. The order should match the header. 1679 // ifdef at the bottom. The order should match the header.
1674 // ----------------------------------------------------------------------------- 1680 // -----------------------------------------------------------------------------
1675 1681
1676 } // namespace switches 1682 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698