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

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

Issue 11189094: Implement sideload wipeout for Extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/extensions/extension.h » ('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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 // Enables the installation and usage of Portable Native Client. 618 // Enables the installation and usage of Portable Native Client.
619 const char kEnablePnacl[] = "enable-pnacl"; 619 const char kEnablePnacl[] = "enable-pnacl";
620 620
621 // Enables tracking of tasks in profiler for viewing via about:profiler. 621 // Enables tracking of tasks in profiler for viewing via about:profiler.
622 // To predominantly disable tracking (profiling), use the command line switch: 622 // To predominantly disable tracking (profiling), use the command line switch:
623 // --enable-profiling=0 623 // --enable-profiling=0
624 // Some tracking will still take place at startup, but it will be turned off 624 // Some tracking will still take place at startup, but it will be turned off
625 // during chrome_browser_main. 625 // during chrome_browser_main.
626 const char kEnableProfiling[] = "enable-profiling"; 626 const char kEnableProfiling[] = "enable-profiling";
627 627
628 // Enables or disables extension scripts badges in the location bar.
629 const char kScriptBadges[] = "script-badges";
630 628
631 // Controls the support for SDCH filtering (dictionary based expansion of 629 // Controls the support for SDCH filtering (dictionary based expansion of
632 // content). By default SDCH filtering is enabled. To disable SDCH filtering, 630 // content). By default SDCH filtering is enabled. To disable SDCH filtering,
633 // use "--enable-sdch=0" as command line argument. SDCH is currently only 631 // use "--enable-sdch=0" as command line argument. SDCH is currently only
634 // supported server-side for searches on google.com. 632 // supported server-side for searches on google.com.
635 const char kEnableSdch[] = "enable-sdch"; 633 const char kEnableSdch[] = "enable-sdch";
636 634
637 // Enable the settings WebUI dialog that installs as a packaged app. 635 // Enable the settings WebUI dialog that installs as a packaged app.
638 const char kEnableSettingsApp[] = "enable-settings-app"; 636 const char kEnableSettingsApp[] = "enable-settings-app";
639 637
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 1141
1144 // Disable saving pages as HTML-only, disable saving pages as HTML Complete 1142 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
1145 // (with a directory of sub-resources). Enable only saving pages as MHTML. 1143 // (with a directory of sub-resources). Enable only saving pages as MHTML.
1146 // See http://crbug.com/120416 for how to remove this switch. 1144 // See http://crbug.com/120416 for how to remove this switch.
1147 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; 1145 const char kSavePageAsMHTML[] = "save-page-as-mhtml";
1148 1146
1149 // URL prefix used by safebrowsing to fetch hash, download data and report 1147 // URL prefix used by safebrowsing to fetch hash, download data and report
1150 // malware. 1148 // malware.
1151 const char kSbURLPrefix[] = "safebrowsing-url-prefix"; 1149 const char kSbURLPrefix[] = "safebrowsing-url-prefix";
1152 1150
1153 // Enable or diable the "script bubble" icon in the URL bar that tells you how
1154 // many extensions are running scripts on a page.
1155 const char kScriptBubble[] = "script-bubble";
1156
1157 // If present, safebrowsing only performs update when 1151 // If present, safebrowsing only performs update when
1158 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. 1152 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
1159 // This is used for testing only. 1153 // This is used for testing only.
1160 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; 1154 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
1161 1155
1162 // TODO(lzheng): Remove this flag once the feature works fine 1156 // TODO(lzheng): Remove this flag once the feature works fine
1163 // (http://crbug.com/74848). 1157 // (http://crbug.com/74848).
1164 // 1158 //
1165 // Disables safebrowsing feature that checks download url and downloads 1159 // Disables safebrowsing feature that checks download url and downloads
1166 // content's hash to make sure the content are not malicious. 1160 // content's hash to make sure the content are not malicious.
1167 const char kSbDisableDownloadProtection[] = 1161 const char kSbDisableDownloadProtection[] =
1168 "safebrowsing-disable-download-protection"; 1162 "safebrowsing-disable-download-protection";
1169 1163
1164 // Enables or disables extension scripts badges in the location bar.
1165 const char kScriptBadges[] = "script-badges";
1166
1167 // Enable or diable the "script bubble" icon in the URL bar that tells you how
1168 // many extensions are running scripts on a page.
1169 const char kScriptBubble[] = "script-bubble";
1170
1170 // Enables the showing of an info-bar instructing user they can search directly 1171 // Enables the showing of an info-bar instructing user they can search directly
1171 // from the omnibox. 1172 // from the omnibox.
1172 const char kSearchInOmniboxHint[] = "search-in-omnibox-hint"; 1173 const char kSearchInOmniboxHint[] = "search-in-omnibox-hint";
1173 1174
1174 // Sets a token in the token service, for testing. 1175 // Sets a token in the token service, for testing.
1175 const char kSetToken[] = "set-token"; 1176 const char kSetToken[] = "set-token";
1176 1177
1177 // If true the app list will be shown. 1178 // If true the app list will be shown.
1178 const char kShowAppList[] = "show-app-list"; 1179 const char kShowAppList[] = "show-app-list";
1179 1180
1180 // Annotates forms with Autofill field type predictions. 1181 // Annotates forms with Autofill field type predictions.
1181 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions"; 1182 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions";
1182 1183
1183 // Makes component extensions appear in chrome://settings/extensions. 1184 // Makes component extensions appear in chrome://settings/extensions.
1184 const char kShowComponentExtensionOptions[] = 1185 const char kShowComponentExtensionOptions[] =
1185 "show-component-extension-options"; 1186 "show-component-extension-options";
1186 1187
1187 // See kHideIcons. 1188 // See kHideIcons.
1188 const char kShowIcons[] = "show-icons"; 1189 const char kShowIcons[] = "show-icons";
1189 1190
1190 // If true the alignment of the launcher can be changed. 1191 // If true the alignment of the launcher can be changed.
1191 const char kShowLauncherAlignmentMenu[] = "show-launcher-alignment-menu"; 1192 const char kShowLauncherAlignmentMenu[] = "show-launcher-alignment-menu";
1192 1193
1194 // Enables or disables sideload wipeout extension effort.
1195 const char kSideloadWipeout[] = "sideload-wipeout";
1196
1193 // Changes the DCHECKS to dump memory and continue instead of displaying error 1197 // Changes the DCHECKS to dump memory and continue instead of displaying error
1194 // dialog. This is valid only in Release mode when --enable-dcheck is 1198 // dialog. This is valid only in Release mode when --enable-dcheck is
1195 // specified. 1199 // specified.
1196 const char kSilentDumpOnDCHECK[] = "silent-dump-on-dcheck"; 1200 const char kSilentDumpOnDCHECK[] = "silent-dump-on-dcheck";
1197 1201
1198 // Simulates an update being available. 1202 // Simulates an update being available.
1199 const char kSimulateUpgrade[] = "simulate-upgrade"; 1203 const char kSimulateUpgrade[] = "simulate-upgrade";
1200 1204
1201 // Replaces the buffered data source for <audio> and <video> with a simplified 1205 // Replaces the buffered data source for <audio> and <video> with a simplified
1202 // resource loader that downloads the entire resource into memory. 1206 // resource loader that downloads the entire resource into memory.
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 return true; 1598 return true;
1595 #elif defined(OS_WIN) 1599 #elif defined(OS_WIN)
1596 return true; 1600 return true;
1597 #else 1601 #else
1598 return CommandLine::ForCurrentProcess()->HasSwitch( 1602 return CommandLine::ForCurrentProcess()->HasSwitch(
1599 switches::kEnableFramelessConstrainedDialogs); 1603 switches::kEnableFramelessConstrainedDialogs);
1600 #endif 1604 #endif
1601 } 1605 }
1602 1606
1603 } // namespace chrome 1607 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698