Popular sites on the NTP: re-download popular suggestions once per Chrome run
[chromium-blink-merge.git] / chrome / browser / defaults.h
blob482f7c62b0c44c32dcb39713c2befa172f9656d2
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"
11 #include "chrome/browser/prefs/session_startup_pref.h"
12 #include "ui/base/resource/resource_bundle.h"
14 namespace browser_defaults {
16 // Can the browser be alive without any browser windows?
17 extern const bool kBrowserAliveWithNoWindows;
19 // Whether various menu items are shown.
20 extern const bool kShowExitMenuItem;
21 extern const bool kShowUpgradeMenuItem;
22 #if defined(GOOGLE_CHROME_BUILD)
23 extern const bool kShowHelpMenuItemIcon;
24 #endif
26 // Should a link be shown on the bookmark bar allowing the user to import
27 // bookmarks?
28 extern const bool kShowImportOnBookmarkBar;
30 // Should always open incognito windows when started with --incognito switch?
31 extern const bool kAlwaysOpenIncognitoWindow;
33 // Indicates whether session restore should always create a new
34 // tabbed browser. This is true every where except on ChromeOS
35 // where we want the desktop to show through in this situation.
36 extern const bool kAlwaysCreateTabbedBrowserOnSessionRestore;
38 // Does the download page have the show in folder option?
39 extern const bool kDownloadPageHasShowInFolder;
41 // Should the tab strip be sized to the top of the tab strip?
42 extern const bool kSizeTabButtonToTopOfTabStrip;
44 // If true, we want to automatically start sync signin whenever we have
45 // credentials (user doesn't need to go through the startup flow). This is
46 // typically enabled on platforms (like ChromeOS) that have their own
47 // distinct signin flow.
48 extern const bool kSyncAutoStarts;
50 // Should other browsers be shown in about:memory page?
51 extern const bool kShowOtherBrowsersInAboutMemory;
53 // Should scroll events on the tabstrip change tabs?
54 extern const bool kScrollEventChangesTab;
56 // ChromiumOS network menu font
57 extern const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle;
59 // Last character display for passwords.
60 extern const bool kPasswordEchoEnabled;
62 //=============================================================================
63 // Runtime "const" - set only once after parsing command line option and should
64 // never be modified after that.
66 // Are bookmark enabled? True by default.
67 extern bool bookmarks_enabled;
69 // Whether HelpApp is enabled. True by default. This is only used by Chrome OS
70 // today.
71 extern bool enable_help_app;
73 } // namespace browser_defaults
75 #endif // CHROME_BROWSER_DEFAULTS_H_