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

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

Issue 10356052: Disable off-store extension installs by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: argh Created 8 years, 7 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
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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // is needed for a domain which shares an IP with an existing connection, 325 // is needed for a domain which shares an IP with an existing connection,
326 // attempt to use the existing connection. 326 // attempt to use the existing connection.
327 const char kDisableIPPooling[] = "disable-ip-pooling"; 327 const char kDisableIPPooling[] = "disable-ip-pooling";
328 328
329 // Avoid doing expensive animations upon login. 329 // Avoid doing expensive animations upon login.
330 const char kDisableLoginAnimations[] = "disable-login-animations"; 330 const char kDisableLoginAnimations[] = "disable-login-animations";
331 331
332 // Disables the menu on the NTP for accessing sessions from other devices. 332 // Disables the menu on the NTP for accessing sessions from other devices.
333 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; 333 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu";
334 334
335 // Disables the inline off-store extension installation UI. With this switch,
336 // users must use a new out-of-band installation UI from chrome://extensions/.
337 const char kDisableOffStoreExtensionInstall[] =
338 "disable-off-store-extension-install";
339
340 // Disable speculative TCP/IP preconnection. 335 // Disable speculative TCP/IP preconnection.
341 const char kDisablePreconnect[] = "disable-preconnect"; 336 const char kDisablePreconnect[] = "disable-preconnect";
342 337
343 // Normally when the user attempts to navigate to a page that was the result of 338 // Normally when the user attempts to navigate to a page that was the result of
344 // a post we prompt to make sure they want to. This switch may be used to 339 // a post we prompt to make sure they want to. This switch may be used to
345 // disable that check. This switch is used during automated testing. 340 // disable that check. This switch is used during automated testing.
346 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; 341 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost";
347 342
348 // Prevents the URLs of BackgroundContents from being remembered and 343 // Prevents the URLs of BackgroundContents from being remembered and
349 // re-launched when the browser restarts. 344 // re-launched when the browser restarts.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 // Enables hardware exception handling via debugger process. 552 // Enables hardware exception handling via debugger process.
558 const char kEnableNaClExceptionHandling[] = "enable-nacl-exception-handling"; 553 const char kEnableNaClExceptionHandling[] = "enable-nacl-exception-handling";
559 554
560 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. 555 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY.
561 const char kEnableNpn[] = "enable-npn"; 556 const char kEnableNpn[] = "enable-npn";
562 557
563 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. 558 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
564 // HTTP is still used for all requests. 559 // HTTP is still used for all requests.
565 const char kEnableNpnHttpOnly[] = "enable-npn-http"; 560 const char kEnableNpnHttpOnly[] = "enable-npn-http";
566 561
562 // Enables extensions to be easily installed from sites other than the web
563 // store. Without this flag, they can still be installed, but must be manually
564 // dragged onto chrome://extensions/.
565 const char kEnableOffStoreExtensionInstall[] =
566 "enable-off-store-extension-install";
567
567 // Enables panels (always on-top docked pop-up windows). 568 // Enables panels (always on-top docked pop-up windows).
568 const char kEnablePanels[] = "enable-panels"; 569 const char kEnablePanels[] = "enable-panels";
569 570
570 // Enables password generation when we detect that the user is going through 571 // Enables password generation when we detect that the user is going through
571 // account creation. 572 // account creation.
572 const char kEnablePasswordGeneration[] = "enable-password-generation"; 573 const char kEnablePasswordGeneration[] = "enable-password-generation";
573 574
574 // Enables advanced app capabilities. 575 // Enables advanced app capabilities.
575 const char kEnablePlatformApps[] = "enable-platform-apps"; 576 const char kEnablePlatformApps[] = "enable-platform-apps";
576 577
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 1430
1430 // ----------------------------------------------------------------------------- 1431 // -----------------------------------------------------------------------------
1431 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1432 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1432 // 1433 //
1433 // You were going to just dump your switches here, weren't you? Instead, please 1434 // You were going to just dump your switches here, weren't you? Instead, please
1434 // put them in alphabetical order above, or in order inside the appropriate 1435 // put them in alphabetical order above, or in order inside the appropriate
1435 // ifdef at the bottom. The order should match the header. 1436 // ifdef at the bottom. The order should match the header.
1436 // ----------------------------------------------------------------------------- 1437 // -----------------------------------------------------------------------------
1437 1438
1438 } // namespace switches 1439 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698