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

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: Latest master 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
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/extensions/api/webstore.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const char kAppsCheckoutURL[] = "apps-checkout-url"; 77 const char kAppsCheckoutURL[] = "apps-checkout-url";
78 78
79 // The URL that the webstore APIs download extensions from. 79 // The URL that the webstore APIs download extensions from.
80 // Note: the URL must contain one '%s' for the extension ID. 80 // Note: the URL must contain one '%s' for the extension ID.
81 const char kAppsGalleryDownloadURL[] = "apps-gallery-download-url"; 81 const char kAppsGalleryDownloadURL[] = "apps-gallery-download-url";
82 82
83 // A setting to cause extension/app installs from the webstore skip the normal 83 // A setting to cause extension/app installs from the webstore skip the normal
84 // confirmation dialog. A value of 'accept' means to always act as if the dialog 84 // confirmation dialog. A value of 'accept' means to always act as if the dialog
85 // was accepted, and 'cancel' means to always act as if the dialog was 85 // was accepted, and 'cancel' means to always act as if the dialog was
86 // cancelled. 86 // cancelled.
87 //
88 // TODO (rdevlin.cronin): Remove this.
89 // This is not a good use of a command-line flag, as it would be equally
90 // effective as a global boolean. Additionally, this opens up a dangerous way
91 // for attackers to append a commandline flag and circumvent all user action for
92 // installing an extension.
87 const char kAppsGalleryInstallAutoConfirmForTests[] = 93 const char kAppsGalleryInstallAutoConfirmForTests[] =
88 "apps-gallery-install-auto-confirm-for-tests"; 94 "apps-gallery-install-auto-confirm-for-tests";
89 95
90 // The URL to use for the gallery link in the app launcher. 96 // The URL to use for the gallery link in the app launcher.
91 const char kAppsGalleryURL[] = "apps-gallery-url"; 97 const char kAppsGalleryURL[] = "apps-gallery-url";
92 98
93 // The update url used by gallery/webstore extensions. 99 // The update url used by gallery/webstore extensions.
94 const char kAppsGalleryUpdateURL[] = "apps-gallery-update-url"; 100 const char kAppsGalleryUpdateURL[] = "apps-gallery-update-url";
95 101
96 // Value of GAIA auth code for --force-app-mode. 102 // Value of GAIA auth code for --force-app-mode.
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 1544
1539 // ----------------------------------------------------------------------------- 1545 // -----------------------------------------------------------------------------
1540 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1546 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1541 // 1547 //
1542 // You were going to just dump your switches here, weren't you? Instead, please 1548 // You were going to just dump your switches here, weren't you? Instead, please
1543 // put them in alphabetical order above, or in order inside the appropriate 1549 // put them in alphabetical order above, or in order inside the appropriate
1544 // ifdef at the bottom. The order should match the header. 1550 // ifdef at the bottom. The order should match the header.
1545 // ----------------------------------------------------------------------------- 1551 // -----------------------------------------------------------------------------
1546 1552
1547 } // namespace switches 1553 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/extensions/api/webstore.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698