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

Side by Side Diff: chrome/installer/util/master_preferences.h

Issue 155063: Merge r18210.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 years, 5 months 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This file contains functions processing master preference file used by 5 // This file contains functions processing master preference file used by
6 // setup and first run. 6 // setup and first run.
7 7
8 #ifndef CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H__ 8 #ifndef CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H__
9 #define CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H__ 9 #define CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H__
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 MASTER_PROFILE_DO_NOT_LAUNCH_CHROME = 0x1 << 9, 46 MASTER_PROFILE_DO_NOT_LAUNCH_CHROME = 0x1 << 9,
47 // Register Chrome as default browser on the system. 47 // Register Chrome as default browser on the system.
48 MASTER_PROFILE_MAKE_CHROME_DEFAULT = 0x1 << 10, 48 MASTER_PROFILE_MAKE_CHROME_DEFAULT = 0x1 << 10,
49 // Install Chrome to system wise location. 49 // Install Chrome to system wise location.
50 MASTER_PROFILE_SYSTEM_LEVEL = 0x1 << 11, 50 MASTER_PROFILE_SYSTEM_LEVEL = 0x1 << 11,
51 // Run installer in verbose mode. 51 // Run installer in verbose mode.
52 MASTER_PROFILE_VERBOSE_LOGGING = 0x1 << 12, 52 MASTER_PROFILE_VERBOSE_LOGGING = 0x1 << 12,
53 // Show the EULA and do not install if not accepted. 53 // Show the EULA and do not install if not accepted.
54 MASTER_PROFILE_REQUIRE_EULA = 0x1 << 13, 54 MASTER_PROFILE_REQUIRE_EULA = 0x1 << 13,
55 // Use an alternate description text for some shortcuts. 55 // Use an alternate description text for some shortcuts.
56 MASTER_PROFILE_ALT_SHORTCUT_TXT = 0x1 << 14 56 MASTER_PROFILE_ALT_SHORTCUT_TXT = 0x1 << 14,
57 // Use a smaller OEM info bubble on first run.
58 MASTER_PROFILE_OEM_FIRST_RUN_BUBBLE = 0x1 << 15,
59 // Import home page from the default browser.
60 MASTER_PROFILE_IMPORT_HOME_PAGE = 0x1 << 16
57 }; 61 };
58 62
59 // The master preferences is a JSON file with the same entries as the 63 // The master preferences is a JSON file with the same entries as the
60 // 'Default\Preferences' file. This function parses the distribution 64 // 'Default\Preferences' file. This function parses the distribution
61 // section of the preferences file. 65 // section of the preferences file.
62 // 66 //
63 // A prototypical 'master_preferences' file looks like this: 67 // A prototypical 'master_preferences' file looks like this:
64 // 68 //
65 // { 69 // {
66 // "distribution": { 70 // "distribution": {
67 // "skip_first_run_ui": true, 71 // "skip_first_run_ui": true,
68 // "show_welcome_page": true, 72 // "show_welcome_page": true,
69 // "import_search_engine": true, 73 // "import_search_engine": true,
70 // "import_history": false, 74 // "import_history": false,
71 // "import_bookmarks": false, 75 // "import_bookmarks": false,
76 // "import_home_page": false,
72 // "create_all_shortcuts": true, 77 // "create_all_shortcuts": true,
73 // "do_not_launch_chrome": false, 78 // "do_not_launch_chrome": false,
74 // "make_chrome_default": false, 79 // "make_chrome_default": false,
75 // "make_chrome_default_for_user": true, 80 // "make_chrome_default_for_user": true,
76 // "system_level": false, 81 // "system_level": false,
77 // "verbose_logging": true, 82 // "verbose_logging": true,
78 // "require_eula": true, 83 // "require_eula": true,
79 // "alternate_shortcut_text": false 84 // "alternate_shortcut_text": false
80 // }, 85 // },
81 // "browser": { 86 // "browser": {
(...skipping 29 matching lines...) Expand all
111 // Note that the entries are usually urls but they don't have to. 116 // Note that the entries are usually urls but they don't have to.
112 // 117 //
113 // This function retuns the list as a vector of strings. If the master 118 // This function retuns the list as a vector of strings. If the master
114 // preferences file does not contain such list the vector is empty. 119 // preferences file does not contain such list the vector is empty.
115 std::vector<std::wstring> ParseFirstRunTabs( 120 std::vector<std::wstring> ParseFirstRunTabs(
116 const std::wstring& master_prefs_path); 121 const std::wstring& master_prefs_path);
117 122
118 } 123 }
119 124
120 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H__ 125 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H__
OLDNEW
« no previous file with comments | « chrome/installer/util/google_chrome_distribution_unittest.cc ('k') | chrome/installer/util/master_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698