master_preferences_constants.h revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
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. 4// 5// This file contains the constants used to process master_preferences files 6// used by setup and first run. 7 8#ifndef CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_CONSTANTS_H_ 9#define CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_CONSTANTS_H_ 10 11namespace installer { 12namespace 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. 17 18// Boolean. Use alternate text for the shortcut. Cmd line override present. 19extern 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|. 22extern const char kAutoLaunchChrome[]; 23// Boolean. This is to be a Chrome install. (When using MultiInstall) 24extern const char kChrome[]; 25// Boolean. This is to be a Chrome App Host install. 26extern const char kChromeAppHostDeprecated[]; // TODO(huangs): Remove by M27. 27// Boolean. This is to be a Chrome App Launcher install. 28extern const char kChromeAppLauncher[]; 29// Boolean. This is to be a Chrome Frame install. 30extern const char kChromeFrame[]; 31// Boolean. Chrome Frame is to be installed in ready-mode. 32extern const char kChromeFrameReadyMode[]; 33// Integer. Icon index from chrome.exe to use for shortcuts. 34extern const char kChromeShortcutIconIndex[]; 35// Boolean. This is a legacy preference and should no longer be used; it is 36// kept around so that old master_preferences which specify 37// "create_all_shortcuts":false still enforce the new 38// "do_not_create_(desktop|quick_launch)_shortcut" preferences. Setting this to 39// true no longer has any impact. 40extern const char kCreateAllShortcuts[]; 41// Boolean pref that disables all logging. 42extern const char kDisableLogging[]; 43// Name of the dictionary that holds the distribution values. 44extern const char kDistroDict[]; 45// Boolean pref that triggers silent import of the default browser bookmarks. 46extern const char kDistroImportBookmarksPref[]; 47// String pref that triggers silent import of bookmarks from the html file at 48// given path. 49extern const char kDistroImportBookmarksFromFilePref[]; 50// Boolean pref that triggers silent import of the default browser history. 51extern const char kDistroImportHistoryPref[]; 52// Boolean pref that triggers silent import of the default browser homepage. 53extern const char kDistroImportHomePagePref[]; 54// Boolean pref that triggers silent import of the default search engine. 55extern const char kDistroImportSearchPref[]; 56// Integer. RLZ ping delay in seconds. 57extern const char kDistroPingDelay[]; 58// Boolean. Do not show first run bubble, even if it would otherwise be shown. 59extern const char kDistroSuppressFirstRunBubble[]; 60// Boolean. Prevent creation of all shortcuts to chrome, including the 61// desktop, quick launch, taskbar and the start menu shortcuts. 62extern const char kDoNotCreateAnyShortcuts[]; 63// Boolean. Prevent creation of the Desktop shortcut on install (and later on 64// Active Setup for each user on a system-level install). 65extern const char kDoNotCreateDesktopShortcut[]; 66// Boolean. Prevent creation of the Quick Launch shortcut on install (and later 67// on Active Setup for each user on a system-level install). 68extern const char kDoNotCreateQuickLaunchShortcut[]; 69// Boolean. Prevent creation of the Taskbar (since Windows 7) shortcut on 70// install (and later on Active Setup for each user on a system-level install). 71extern const char kDoNotCreateTaskbarShortcut[]; 72// Boolean. Do not launch Chrome after first install. Cmd line override present. 73extern const char kDoNotLaunchChrome[]; 74// Boolean. Do not register with Google Update to have Chrome launched after 75// install. Cmd line override present. 76extern const char kDoNotRegisterForUpdateLaunch[]; 77// String. Specifies the file path to write logging info to. 78extern const char kLogFile[]; 79// Boolean. Register Chrome as default browser. Cmd line override present. 80extern const char kMakeChromeDefault[]; 81// Boolean. Register Chrome as default browser for the current user. 82extern const char kMakeChromeDefaultForUser[]; 83// Boolean. Expect to be run by an MSI installer. Cmd line override present. 84extern const char kMsi[]; 85// Boolean. Support installing multiple products at once. 86extern const char kMultiInstall[]; 87// Boolean. Show EULA dialog before install. 88extern const char kRequireEula[]; 89// Boolean. Indicates that the first-run 'set-as-default' dialog should not be 90// shown. Relevant in Windows 8+ context only. If this is true, the standard 91// 'set default browser' prompt on the butter-bar will appear during the first 92// run. 93extern const char kSuppressFirstRunDefaultBrowserPrompt[]; 94// Boolean. Install Chrome to system wise location. Cmd line override present. 95extern const char kSystemLevel[]; 96// Boolean. Run installer in verbose mode. Cmd line override present. 97extern const char kVerboseLogging[]; 98// Name of the block that contains the extensions on the master preferences. 99extern const char kExtensionsBlock[]; 100} // namespace master_preferences 101} // namespace installer 102 103#endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_CONSTANTS_H_ 104