OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/installer/util/master_preferences.h" | 5 #include "chrome/installer/util/master_preferences.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "chrome/common/json_value_serializer.h" | 10 #include "chrome/common/json_value_serializer.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 const wchar_t kCreateAllShortcuts[] = L"create_all_shortcuts"; | 23 const wchar_t kCreateAllShortcuts[] = L"create_all_shortcuts"; |
24 const wchar_t kDistroImportBookmarksPref[] = L"import_bookmarks"; | 24 const wchar_t kDistroImportBookmarksPref[] = L"import_bookmarks"; |
25 const wchar_t kDistroImportHistoryPref[] = L"import_history"; | 25 const wchar_t kDistroImportHistoryPref[] = L"import_history"; |
26 const wchar_t kDistroImportHomePagePref[] = L"import_home_page"; | 26 const wchar_t kDistroImportHomePagePref[] = L"import_home_page"; |
27 const wchar_t kDistroImportSearchPref[] = L"import_search_engine"; | 27 const wchar_t kDistroImportSearchPref[] = L"import_search_engine"; |
28 const wchar_t kDistroPingDelay[] = L"ping_delay"; | 28 const wchar_t kDistroPingDelay[] = L"ping_delay"; |
29 const wchar_t kDistroShowWelcomePage[] = L"show_welcome_page"; | 29 const wchar_t kDistroShowWelcomePage[] = L"show_welcome_page"; |
30 const wchar_t kDistroSkipFirstRunPref[] = L"skip_first_run_ui"; | 30 const wchar_t kDistroSkipFirstRunPref[] = L"skip_first_run_ui"; |
31 const wchar_t kDoNotCreateShortcuts[] = L"do_not_create_shortcuts"; | 31 const wchar_t kDoNotCreateShortcuts[] = L"do_not_create_shortcuts"; |
32 const wchar_t kDoNotLaunchChrome[] = L"do_not_launch_chrome"; | 32 const wchar_t kDoNotLaunchChrome[] = L"do_not_launch_chrome"; |
| 33 const wchar_t kDoNotRegisterForUpdateLaunch[] = |
| 34 L"do_not_register_for_update_launch"; |
33 const wchar_t kMakeChromeDefault[] = L"make_chrome_default"; | 35 const wchar_t kMakeChromeDefault[] = L"make_chrome_default"; |
34 const wchar_t kMakeChromeDefaultForUser[] = L"make_chrome_default_for_user"; | 36 const wchar_t kMakeChromeDefaultForUser[] = L"make_chrome_default_for_user"; |
35 const wchar_t kRequireEula[] = L"require_eula"; | 37 const wchar_t kRequireEula[] = L"require_eula"; |
36 const wchar_t kSystemLevel[] = L"system_level"; | 38 const wchar_t kSystemLevel[] = L"system_level"; |
37 const wchar_t kVerboseLogging[] = L"verbose_logging"; | 39 const wchar_t kVerboseLogging[] = L"verbose_logging"; |
38 } | 40 } |
39 | 41 |
40 bool GetDistroBooleanPreference(const DictionaryValue* prefs, | 42 bool GetDistroBooleanPreference(const DictionaryValue* prefs, |
41 const std::wstring& name) { | 43 const std::wstring& name) { |
42 | 44 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 if (prefs && !name.empty()) { | 114 if (prefs && !name.empty()) { |
113 std::wstring key(kDistroDict); | 115 std::wstring key(kDistroDict); |
114 key.append(L"." + name); | 116 key.append(L"." + name); |
115 if (prefs->SetBoolean(key, value)) | 117 if (prefs->SetBoolean(key, value)) |
116 ret = true; | 118 ret = true; |
117 } | 119 } |
118 return ret; | 120 return ret; |
119 } | 121 } |
120 | 122 |
121 } // installer_util | 123 } // installer_util |
OLD | NEW |