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

Side by Side Diff: extensions/common/switches.cc

Issue 1253993004: Reintroduce --prompt-for-external-extensions flag on Chromium builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment change in switches.cc Created 5 years, 4 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 | « extensions/common/switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "extensions/common/switches.h" 5 #include "extensions/common/switches.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Appending --scripts-require-action=1 has the same effect as 80 // Appending --scripts-require-action=1 has the same effect as
81 // --enable-scripts-require-action (see below). 81 // --enable-scripts-require-action (see below).
82 const char kScriptsRequireAction[] = "scripts-require-action"; 82 const char kScriptsRequireAction[] = "scripts-require-action";
83 // FeatureSwitch and about_flags don't play nice. Feature switch expects either 83 // FeatureSwitch and about_flags don't play nice. Feature switch expects either
84 // --enable-<feature> or --<feature>=1, but about_flags expects the command 84 // --enable-<feature> or --<feature>=1, but about_flags expects the command
85 // line argument to enable it (or a selection). Hack this in, so enabling it 85 // line argument to enable it (or a selection). Hack this in, so enabling it
86 // in about_flags enables the feature. Appending this flag has the same effect 86 // in about_flags enables the feature. Appending this flag has the same effect
87 // as --scripts-require-action=1. 87 // as --scripts-require-action=1.
88 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action"; 88 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action";
89 89
90 #if defined(CHROMIUM_BUILD)
91 // Should we prompt the user before allowing external extensions to install?
92 // This flag is available on Chromium for testing purposes.
93 const char kPromptForExternalExtensions[] = "prompt-for-external-extensions";
94 #endif
95
90 // Makes component extensions appear in chrome://settings/extensions. 96 // Makes component extensions appear in chrome://settings/extensions.
91 const char kShowComponentExtensionOptions[] = 97 const char kShowComponentExtensionOptions[] =
92 "show-component-extension-options"; 98 "show-component-extension-options";
93 99
94 // Adds the given extension ID to all the permission whitelists. 100 // Adds the given extension ID to all the permission whitelists.
95 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; 101 const char kWhitelistedExtensionID[] = "whitelisted-extension-id";
96 102
97 // Pass launch source to platform apps. 103 // Pass launch source to platform apps.
98 const char kTraceAppSource[] = "enable-trace-app-source"; 104 const char kTraceAppSource[] = "enable-trace-app-source";
99 105
100 // Enable package hash check: the .crx file sha256 hash sum should be equal to 106 // Enable package hash check: the .crx file sha256 hash sum should be equal to
101 // the one received from update manifest. 107 // the one received from update manifest.
102 const char kEnableCrxHashCheck[] = "enable-crx-hash-check"; 108 const char kEnableCrxHashCheck[] = "enable-crx-hash-check";
103 109
104 } // namespace switches 110 } // namespace switches
105 111
106 } // namespace extensions 112 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698