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
3 // found in the LICENSE file.
5 // Defines various defaults whose values varies depending upon the OS.
7 #ifndef CHROME_BROWSER_DEFAULTS_H_
8 #define CHROME_BROWSER_DEFAULTS_H_
10 #include "build/build_config.h"
12 namespace browser_defaults {
14 // Can the browser be alive without any browser windows?
15 extern const bool kBrowserAliveWithNoWindows;
17 // Whether various menu items are shown.
18 extern const bool kShowExitMenuItem;
19 extern const bool kShowUpgradeMenuItem;
21 // Only used in branded builds.
22 extern const bool kShowHelpMenuItemIcon;
24 // Should a link be shown on the bookmark bar allowing the user to import
26 extern const bool kShowImportOnBookmarkBar;
28 // Should always open incognito windows when started with --incognito switch?
29 extern const bool kAlwaysOpenIncognitoWindow;
31 // Indicates whether session restore should always create a new
32 // tabbed browser. This is true every where except on ChromeOS
33 // where we want the desktop to show through in this situation.
34 extern const bool kAlwaysCreateTabbedBrowserOnSessionRestore;
36 // Does the download page have the show in folder option?
37 extern const bool kDownloadPageHasShowInFolder;
39 // If true, we want to automatically start sync signin whenever we have
40 // credentials (user doesn't need to go through the startup flow). This is
41 // typically enabled on platforms (like ChromeOS) that have their own
42 // distinct signin flow.
43 extern const bool kSyncAutoStarts;
45 // Should scroll events on the tabstrip change tabs?
46 extern const bool kScrollEventChangesTab;
48 // Last character display for passwords.
49 extern const bool kPasswordEchoEnabled;
51 //=============================================================================
52 // Runtime "const" - set only once after parsing command line option and should
53 // never be modified after that.
55 // Are bookmark enabled? True by default.
56 extern bool bookmarks_enabled;
58 // Whether HelpApp is enabled. True by default. This is only used by Chrome OS
60 extern bool enable_help_app;
62 } // namespace browser_defaults
64 #endif // CHROME_BROWSER_DEFAULTS_H_