Modify-default-preferences.patch 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. From: csagan5 <32685696+csagan5@users.noreply.github.com>
  2. Date: Sat, 2 May 2020 00:25:25 +0200
  3. Subject: Modify default preferences
  4. ---
  5. chrome/browser/background/background_mode_manager.cc | 2 +-
  6. chrome/browser/chrome_content_browser_client.cc | 2 +-
  7. chrome/browser/net/prediction_options.cc | 2 +-
  8. chrome/browser/net/prediction_options.h | 2 +-
  9. chrome/browser/profiles/profile.cc | 2 +-
  10. .../settings/reset_page/reset_profile_dialog.html | 2 +-
  11. chrome/browser/ui/browser_ui_prefs.cc | 4 ++--
  12. chrome/browser/ui/navigation_correction_tab_observer.cc | 2 +-
  13. .../ui/webui/local_discovery/local_discovery_ui.cc | 4 ----
  14. chrome/service/cloud_print/connector_settings.cc | 2 +-
  15. components/autofill/core/browser/autofill_manager.cc | 9 +++------
  16. components/autofill/core/common/autofill_prefs.cc | 2 +-
  17. components/bookmarks/browser/bookmark_utils.cc | 4 ++--
  18. .../safe_browsing/core/common/safe_browsing_prefs.cc | 4 ++--
  19. 14 files changed, 18 insertions(+), 25 deletions(-)
  20. diff --git a/chrome/browser/background/background_mode_manager.cc b/chrome/browser/background/background_mode_manager.cc
  21. --- a/chrome/browser/background/background_mode_manager.cc
  22. +++ b/chrome/browser/background/background_mode_manager.cc
  23. @@ -310,7 +310,7 @@ void BackgroundModeManager::RegisterPrefs(PrefRegistrySimple* registry) {
  24. registry->RegisterBooleanPref(prefs::kChromeCreatedLoginItem, false);
  25. registry->RegisterBooleanPref(prefs::kMigratedLoginItemPref, false);
  26. #endif
  27. - registry->RegisterBooleanPref(prefs::kBackgroundModeEnabled, true);
  28. + registry->RegisterBooleanPref(prefs::kBackgroundModeEnabled, false);
  29. }
  30. void BackgroundModeManager::RegisterProfile(Profile* profile) {
  31. diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
  32. --- a/chrome/browser/chrome_content_browser_client.cc
  33. +++ b/chrome/browser/chrome_content_browser_client.cc
  34. @@ -1178,7 +1178,7 @@ void ChromeContentBrowserClient::RegisterLocalStatePrefs(
  35. void ChromeContentBrowserClient::RegisterProfilePrefs(
  36. user_prefs::PrefRegistrySyncable* registry) {
  37. registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
  38. - registry->RegisterBooleanPref(prefs::kEnableHyperlinkAuditing, true);
  39. + registry->RegisterBooleanPref(prefs::kEnableHyperlinkAuditing, false);
  40. registry->RegisterListPref(prefs::kEnableDeprecatedWebPlatformFeatures);
  41. // Register user prefs for mapping SitePerProcess and IsolateOrigins in
  42. // user policy in addition to the same named ones in Local State (which are
  43. diff --git a/chrome/browser/net/prediction_options.cc b/chrome/browser/net/prediction_options.cc
  44. --- a/chrome/browser/net/prediction_options.cc
  45. +++ b/chrome/browser/net/prediction_options.cc
  46. @@ -31,7 +31,7 @@ NetworkPredictionStatus CanPrefetchAndPrerender(
  47. }
  48. return NetworkPredictionStatus::DISABLED_DUE_TO_NETWORK;
  49. default:
  50. - DCHECK_EQ(NETWORK_PREDICTION_NEVER, network_prediction_options);
  51. + //DCHECK_EQ(NETWORK_PREDICTION_NEVER, network_prediction_options);
  52. return NetworkPredictionStatus::DISABLED_ALWAYS;
  53. }
  54. }
  55. diff --git a/chrome/browser/net/prediction_options.h b/chrome/browser/net/prediction_options.h
  56. --- a/chrome/browser/net/prediction_options.h
  57. +++ b/chrome/browser/net/prediction_options.h
  58. @@ -22,7 +22,7 @@ enum NetworkPredictionOptions {
  59. NETWORK_PREDICTION_ALWAYS,
  60. NETWORK_PREDICTION_WIFI_ONLY,
  61. NETWORK_PREDICTION_NEVER,
  62. - NETWORK_PREDICTION_DEFAULT = NETWORK_PREDICTION_WIFI_ONLY,
  63. + NETWORK_PREDICTION_DEFAULT = NETWORK_PREDICTION_NEVER,
  64. };
  65. enum class NetworkPredictionStatus {
  66. diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
  67. --- a/chrome/browser/profiles/profile.cc
  68. +++ b/chrome/browser/profiles/profile.cc
  69. @@ -184,7 +184,7 @@ const char Profile::kProfileKey[] = "__PROFILE__";
  70. void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
  71. registry->RegisterBooleanPref(
  72. prefs::kSearchSuggestEnabled,
  73. - true,
  74. + false,
  75. user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
  76. #if defined(OS_ANDROID)
  77. registry->RegisterStringPref(
  78. diff --git a/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html b/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html
  79. --- a/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html
  80. +++ b/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html
  81. @@ -51,7 +51,7 @@
  82. </cr-button>
  83. </div>
  84. <div slot="footer">
  85. - <cr-checkbox id="sendSettings" checked>
  86. + <cr-checkbox id="sendSettings">
  87. $i18nRaw{resetPageFeedback}</cr-checkbox>
  88. </div>
  89. </cr-dialog>
  90. diff --git a/chrome/browser/ui/browser_ui_prefs.cc b/chrome/browser/ui/browser_ui_prefs.cc
  91. --- a/chrome/browser/ui/browser_ui_prefs.cc
  92. +++ b/chrome/browser/ui/browser_ui_prefs.cc
  93. @@ -67,11 +67,11 @@ void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) {
  94. registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
  95. registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true);
  96. registry->RegisterBooleanPref(
  97. - prefs::kOfferTranslateEnabled, true,
  98. + prefs::kOfferTranslateEnabled, false,
  99. user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
  100. registry->RegisterStringPref(prefs::kCloudPrintEmail, std::string());
  101. registry->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled, true);
  102. - registry->RegisterBooleanPref(prefs::kCloudPrintSubmitEnabled, true);
  103. + registry->RegisterBooleanPref(prefs::kCloudPrintSubmitEnabled, false);
  104. registry->RegisterDictionaryPref(prefs::kBrowserWindowPlacement);
  105. registry->RegisterDictionaryPref(prefs::kBrowserWindowPlacementPopup);
  106. registry->RegisterDictionaryPref(prefs::kAppWindowPlacement);
  107. diff --git a/chrome/browser/ui/navigation_correction_tab_observer.cc b/chrome/browser/ui/navigation_correction_tab_observer.cc
  108. --- a/chrome/browser/ui/navigation_correction_tab_observer.cc
  109. +++ b/chrome/browser/ui/navigation_correction_tab_observer.cc
  110. @@ -59,7 +59,7 @@ void NavigationCorrectionTabObserver::SetAllowEnableCorrectionsForTesting(
  111. void NavigationCorrectionTabObserver::RegisterProfilePrefs(
  112. user_prefs::PrefRegistrySyncable* prefs) {
  113. prefs->RegisterBooleanPref(embedder_support::kAlternateErrorPagesEnabled,
  114. - true,
  115. + false,
  116. user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
  117. }
  118. diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc
  119. --- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc
  120. +++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc
  121. @@ -109,10 +109,6 @@ void LocalDiscoveryUI::RegisterProfilePrefs(
  122. registry->RegisterBooleanPref(prefs::kLocalDiscoveryEnabled, true);
  123. registry->RegisterBooleanPref(
  124. prefs::kLocalDiscoveryNotificationsEnabled,
  125. -#if defined(OS_WIN)
  126. false,
  127. -#else
  128. - true,
  129. -#endif
  130. user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
  131. }
  132. diff --git a/chrome/service/cloud_print/connector_settings.cc b/chrome/service/cloud_print/connector_settings.cc
  133. --- a/chrome/service/cloud_print/connector_settings.cc
  134. +++ b/chrome/service/cloud_print/connector_settings.cc
  135. @@ -60,7 +60,7 @@ void ConnectorSettings::InitFrom(ServiceProcessPrefs* prefs) {
  136. DCHECK(server_url_.is_valid());
  137. connect_new_printers_ = prefs->GetBoolean(
  138. - prefs::kCloudPrintConnectNewPrinters, true);
  139. + prefs::kCloudPrintConnectNewPrinters, false);
  140. xmpp_ping_enabled_ = prefs->GetBoolean(
  141. prefs::kCloudPrintXmppPingEnabled, false);
  142. diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
  143. --- a/components/autofill/core/browser/autofill_manager.cc
  144. +++ b/components/autofill/core/browser/autofill_manager.cc
  145. @@ -882,10 +882,7 @@ void AutofillManager::OnQueryFormFieldAutofillImpl(
  146. // suggestions available.
  147. // TODO(mathp): Differentiate between number of suggestions available
  148. // (current metric) and number shown to the user.
  149. - if (!has_logged_address_suggestions_count_) {
  150. - AutofillMetrics::LogAddressSuggestionsCount(suggestions.size());
  151. - has_logged_address_suggestions_count_ = true;
  152. - }
  153. + has_logged_address_suggestions_count_ = true;
  154. }
  155. }
  156. @@ -1523,8 +1520,8 @@ void AutofillManager::Reset() {
  157. #if defined(OS_ANDROID) || defined(OS_IOS)
  158. autofill_assistant_.Reset();
  159. #endif
  160. - has_logged_autofill_enabled_ = false;
  161. - has_logged_address_suggestions_count_ = false;
  162. + has_logged_autofill_enabled_ = true;
  163. + has_logged_address_suggestions_count_ = true;
  164. did_show_suggestions_ = false;
  165. user_did_type_ = false;
  166. user_did_autofill_ = false;
  167. diff --git a/components/autofill/core/common/autofill_prefs.cc b/components/autofill/core/common/autofill_prefs.cc
  168. --- a/components/autofill/core/common/autofill_prefs.cc
  169. +++ b/components/autofill/core/common/autofill_prefs.cc
  170. @@ -147,7 +147,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
  171. prefs::kAutofillLastVersionDisusedAddressesDeleted, 0,
  172. user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
  173. registry->RegisterBooleanPref(
  174. - prefs::kAutofillCreditCardEnabled, true,
  175. + prefs::kAutofillCreditCardEnabled, false,
  176. user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
  177. registry->RegisterStringPref(
  178. prefs::kAutofillProfileValidity, "",
  179. diff --git a/components/bookmarks/browser/bookmark_utils.cc b/components/bookmarks/browser/bookmark_utils.cc
  180. --- a/components/bookmarks/browser/bookmark_utils.cc
  181. +++ b/components/bookmarks/browser/bookmark_utils.cc
  182. @@ -439,12 +439,12 @@ bool DoesBookmarkContainWords(const base::string16& title,
  183. void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
  184. registry->RegisterBooleanPref(
  185. prefs::kShowBookmarkBar,
  186. - false,
  187. + true,
  188. user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
  189. registry->RegisterBooleanPref(prefs::kEditBookmarksEnabled, true);
  190. registry->RegisterBooleanPref(
  191. prefs::kShowAppsShortcutInBookmarkBar,
  192. - true,
  193. + false,
  194. user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
  195. registry->RegisterBooleanPref(
  196. prefs::kShowManagedBookmarksInBookmarkBar,
  197. diff --git a/components/safe_browsing/core/common/safe_browsing_prefs.cc b/components/safe_browsing/core/common/safe_browsing_prefs.cc
  198. --- a/components/safe_browsing/core/common/safe_browsing_prefs.cc
  199. +++ b/components/safe_browsing/core/common/safe_browsing_prefs.cc
  200. @@ -198,9 +198,9 @@ void RegisterProfilePrefs(PrefRegistrySimple* registry) {
  201. registry->RegisterBooleanPref(
  202. prefs::kSafeBrowsingSawInterstitialScoutReporting, false);
  203. registry->RegisterBooleanPref(
  204. - prefs::kSafeBrowsingExtendedReportingOptInAllowed, true);
  205. + prefs::kSafeBrowsingExtendedReportingOptInAllowed, false);
  206. registry->RegisterBooleanPref(
  207. - prefs::kSafeBrowsingEnabled, true,
  208. + prefs::kSafeBrowsingEnabled, false,
  209. user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
  210. registry->RegisterBooleanPref(prefs::kSafeBrowsingEnhanced, false);
  211. registry->RegisterBooleanPref(prefs::kSafeBrowsingProceedAnywayDisabled,
  212. --
  213. 2.17.1