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

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

Issue 11565019: Consolidate dialog style flags and strings; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Alphabetize IDS strings. Created 8 years 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 // Enables logging for extension activity. 512 // Enables logging for extension activity.
513 const char kEnableExtensionActivityLogging[] = 513 const char kEnableExtensionActivityLogging[] =
514 "enable-extension-activity-logging"; 514 "enable-extension-activity-logging";
515 515
516 // Enables the extension activity UI. 516 // Enables the extension activity UI.
517 const char kEnableExtensionActivityUI[] = "enable-extension-activity-ui"; 517 const char kEnableExtensionActivityUI[] = "enable-extension-activity-ui";
518 518
519 // Enables or disables showing extensions in the action box. 519 // Enables or disables showing extensions in the action box.
520 const char kExtensionsInActionBox[] = "extensions-in-action-box"; 520 const char kExtensionsInActionBox[] = "extensions-in-action-box";
521 521
522 // Applies the chrome style to any dialog based on ConstrainedWindowViews.
523 const char kEnableChromeStyleDialogs[] = "enable-chrome-style-dialogs";
524
525 // By default, cookies are not allowed on file://. They are needed for testing, 522 // By default, cookies are not allowed on file://. They are needed for testing,
526 // for example page cycler and layout tests. See bug 1157243. 523 // for example page cycler and layout tests. See bug 1157243.
527 const char kEnableFileCookies[] = "enable-file-cookies"; 524 const char kEnableFileCookies[] = "enable-file-cookies";
528 525
529 // Enables Google Now integration. 526 // Enables Google Now integration.
530 const char kEnableGoogleNowIntegration[] = "enable-google-now-integration"; 527 const char kEnableGoogleNowIntegration[] = "enable-google-now-integration";
531 528
532 // Enable HTTP pipelining. Attempt to pipeline HTTP connections. Heuristics will 529 // Enable HTTP pipelining. Attempt to pipeline HTTP connections. Heuristics will
533 // try to figure out if pipelining can be used for a given host and request. 530 // try to figure out if pipelining can be used for a given host and request.
534 // Without this flag, pipelining will never be used. 531 // Without this flag, pipelining will never be used.
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 1616
1620 // ----------------------------------------------------------------------------- 1617 // -----------------------------------------------------------------------------
1621 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1618 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1622 // 1619 //
1623 // You were going to just dump your switches here, weren't you? Instead, please 1620 // You were going to just dump your switches here, weren't you? Instead, please
1624 // put them in alphabetical order above, or in order inside the appropriate 1621 // put them in alphabetical order above, or in order inside the appropriate
1625 // ifdef at the bottom. The order should match the header. 1622 // ifdef at the bottom. The order should match the header.
1626 // ----------------------------------------------------------------------------- 1623 // -----------------------------------------------------------------------------
1627 1624
1628 } // namespace switches 1625 } // namespace switches
1629
1630 namespace chrome {
1631
1632 bool UseChromeStyleDialogs() {
1633 #if defined(OS_MACOSX)
1634 return true;
1635 #elif defined(OS_WIN)
1636 return CommandLine::ForCurrentProcess()->HasSwitch(
1637 switches::kEnableChromeStyleDialogs);
1638 #else
1639 return CommandLine::ForCurrentProcess()->HasSwitch(
1640 switches::kEnableChromeStyleDialogs);
1641 #endif
1642 }
1643
1644 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698