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 // This file contains the constants used to process master_preferences files
6 // used by setup and first run.
8 #ifndef CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_CONSTANTS_H_
9 #define CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_CONSTANTS_H_
12 namespace master_preferences
{
13 // All the preferences below are expected to be inside the JSON "distribution"
14 // block. Some of them also have equivalent command line option. If same option
15 // is specified in master preference as well as command line, the command line
16 // value takes precedence.
18 // Boolean. Use alternate text for the shortcut. Cmd line override present.
19 extern const char kAltShortcutText
[];
20 // Boolean. Whether to instruct the installer to auto-launch chrome on computer
21 // startup. The default (if not provided) is |false|.
22 extern const char kAutoLaunchChrome
[];
23 // Boolean. This is to be a Chrome install. (When using MultiInstall)
24 extern const char kChrome
[];
25 // Integer. Icon index from chrome.exe to use for shortcuts.
26 extern const char kChromeShortcutIconIndex
[];
27 // Boolean. This is a legacy preference and should no longer be used; it is
28 // kept around so that old master_preferences which specify
29 // "create_all_shortcuts":false still enforce the new
30 // "do_not_create_(desktop|quick_launch)_shortcut" preferences. Setting this to
31 // true no longer has any impact.
32 extern const char kCreateAllShortcuts
[];
33 // Boolean pref that disables all logging.
34 extern const char kDisableLogging
[];
35 // Name of the dictionary that holds the distribution values.
36 extern const char kDistroDict
[];
37 // Boolean pref that triggers silent import of the default browser bookmarks.
38 extern const char kDistroImportBookmarksPref
[];
39 // String pref that triggers silent import of bookmarks from the html file at
41 extern const char kDistroImportBookmarksFromFilePref
[];
42 // Boolean pref that triggers silent import of the default browser history.
43 extern const char kDistroImportHistoryPref
[];
44 // Boolean pref that triggers silent import of the default browser homepage.
45 extern const char kDistroImportHomePagePref
[];
46 // Boolean pref that triggers silent import of the default search engine.
47 extern const char kDistroImportSearchPref
[];
48 // Integer. RLZ ping delay in seconds.
49 extern const char kDistroPingDelay
[];
50 // String of Chrome version for which the "set as default browser" infobar will
52 extern const char kDistroSuppressDefaultBrowserPromptPref
[];
53 // Boolean. Do not show first run bubble, even if it would otherwise be shown.
54 extern const char kDistroSuppressFirstRunBubble
[];
55 // Boolean that specifies whether or not showing the welcome page following an
56 // OS upgrade is enabled. True by default. May be overridden by the
57 // WelcomePageOnOSUpgradeEnabled policy setting.
58 extern const char kDistroWelcomePageOnOSUpgradeEnabled
[];
59 // Boolean. Prevent creation of all shortcuts to chrome, including the
60 // desktop, quick launch, taskbar and the start menu shortcuts.
61 extern const char kDoNotCreateAnyShortcuts
[];
62 // Boolean. Prevent creation of the Desktop shortcut on install (and later on
63 // Active Setup for each user on a system-level install).
64 extern const char kDoNotCreateDesktopShortcut
[];
65 // Boolean. Prevent creation of the Quick Launch shortcut on install (and later
66 // on Active Setup for each user on a system-level install).
67 extern const char kDoNotCreateQuickLaunchShortcut
[];
68 // Boolean. Prevent creation of the Taskbar (since Windows 7) shortcut on
69 // install (and later on Active Setup for each user on a system-level install).
70 extern const char kDoNotCreateTaskbarShortcut
[];
71 // Boolean. Prevent pinning Chrome to the Start Menu (since Windows 10) on
72 // install (and later on Active Setup for each user on a system-level install).
73 extern const char kDoNotCreateStartPin
[];
74 // Boolean. Do not launch Chrome after first install. Cmd line override present.
75 extern const char kDoNotLaunchChrome
[];
76 // Boolean. Do not register with Google Update to have Chrome launched after
77 // install. Cmd line override present.
78 extern const char kDoNotRegisterForUpdateLaunch
[];
79 // String. Specifies the file path to write logging info to.
80 extern const char kLogFile
[];
81 // Boolean. Register Chrome as default browser. Cmd line override present.
82 extern const char kMakeChromeDefault
[];
83 // Boolean. Register Chrome as default browser for the current user.
84 extern const char kMakeChromeDefaultForUser
[];
85 // Boolean. Expect to be run by an MSI installer. Cmd line override present.
86 extern const char kMsi
[];
87 // Boolean. Support installing multiple products at once.
88 extern const char kMultiInstall
[];
89 // Boolean. Show EULA dialog before install.
90 extern const char kRequireEula
[];
91 // Boolean. Indicates that the first-run 'set-as-default' dialog should not be
92 // shown. Relevant in Windows 8+ context only. If this is true, the standard
93 // 'set default browser' prompt on the butter-bar will appear during the first
95 extern const char kSuppressFirstRunDefaultBrowserPrompt
[];
96 // Boolean. Install Chrome to system wise location. Cmd line override present.
97 extern const char kSystemLevel
[];
98 // Boolean. Run installer in verbose mode. Cmd line override present.
99 extern const char kVerboseLogging
[];
100 // Name of the block that contains the extensions on the master preferences.
101 extern const char kExtensionsBlock
[];
102 } // namespace master_preferences
103 } // namespace installer
105 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_CONSTANTS_H_