Fixes remaining crashes
This commit is contained in:
parent
47bef58cca
commit
41105a0baf
14 changed files with 127 additions and 141 deletions
|
@ -28,7 +28,6 @@ is_debug=false
|
|||
is_official_build=true
|
||||
rtc_build_examples=false
|
||||
safe_browsing_mode=0
|
||||
strip_absolute_paths_from_debug_symbols=true
|
||||
symbol_level=1
|
||||
target_os="android"
|
||||
use_debug_fission=true
|
||||
|
|
|
@ -53,11 +53,11 @@ diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/androi
|
|||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
+ <org.chromium.chrome.browser.preferences.HyperlinkPreference
|
||||
+ <org.chromium.chrome.browser.settings.HyperlinkPreference
|
||||
+ android:key="proxy"
|
||||
+ android:title="@string/proxy_title"
|
||||
+ app:url="@string/proxy_url" />
|
||||
<org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
<org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
android:key="search_suggestions"
|
||||
android:title="@string/search_suggestions_title"
|
||||
diff --git a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
|
||||
|
|
|
@ -37,7 +37,7 @@ diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/androi
|
|||
android:title="@string/preload_pages_title"
|
||||
android:summary="@string/preload_pages_summary"
|
||||
android:persistent="false" />
|
||||
+ <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
+ <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
+ android:key="always_incognito"
|
||||
+ android:title="@string/always_incognito_title"
|
||||
+ android:summary="@string/always_incognito_summary"
|
||||
|
|
|
@ -30,7 +30,7 @@ diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/androi
|
|||
android:fragment="org.chromium.chrome.browser.settings.privacy.DoNotTrackPreference"
|
||||
android:key="do_not_track"
|
||||
android:title="@string/do_not_track_title" />
|
||||
+ <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
+ <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
+ android:key="allow_custom_tab_intents"
|
||||
+ android:title="@string/allow_custom_tab_intents_title"
|
||||
+ android:summary="@string/allow_custom_tab_intents_summary"
|
||||
|
|
|
@ -133,12 +133,12 @@ new file mode 100644
|
|||
+ xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
+ xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
+
|
||||
+ <org.chromium.chrome.browser.preferences.ChromeSwitchPreference
|
||||
+ <org.chromium.chrome.browser.settings.ChromeSwitchPreference
|
||||
+ android:key="adblock_switch"
|
||||
+ android:summaryOn="@string/text_on"
|
||||
+ android:summaryOff="@string/text_off" />
|
||||
+
|
||||
+ <org.chromium.chrome.browser.preferences.HyperlinkPreference
|
||||
+ <org.chromium.chrome.browser.settings.HyperlinkPreference
|
||||
+ android:key="adblock_help"
|
||||
+ android:title="@string/adblock_help"
|
||||
+ app:url="@string/adblock_help_url" />
|
||||
|
@ -146,7 +146,7 @@ new file mode 100644
|
|||
+ <Preference
|
||||
+ android:key="adblock_edit"
|
||||
+ android:title="@string/options_adblock_edit_label"
|
||||
+ android:fragment="org.chromium.chrome.browser.preferences.AdBlockEditor" />
|
||||
+ android:fragment="org.chromium.chrome.browser.settings.AdBlockEditor" />
|
||||
+
|
||||
+</PreferenceScreen>
|
||||
diff --git a/chrome/android/java/res/xml/main_preferences.xml b/chrome/android/java/res/xml/main_preferences.xml
|
||||
|
@ -157,7 +157,7 @@ diff --git a/chrome/android/java/res/xml/main_preferences.xml b/chrome/android/j
|
|||
android:order="13"
|
||||
android:title="@string/prefs_privacy"/>
|
||||
+ <Preference
|
||||
+ android:fragment="org.chromium.chrome.browser.preferences.AdBlockPreferences"
|
||||
+ android:fragment="org.chromium.chrome.browser.settings.AdBlockPreferences"
|
||||
+ android:key="adblock"
|
||||
+ android:order="13"
|
||||
+ android:title="@string/prefs_adblock"/>
|
||||
|
|
|
@ -30,7 +30,7 @@ diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/androi
|
|||
android:title="@string/allow_custom_tab_intents_title"
|
||||
android:summary="@string/allow_custom_tab_intents_summary"
|
||||
android:defaultValue="false" />
|
||||
+ <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
+ <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
+ android:key="close_tabs_on_exit"
|
||||
+ android:title="@string/close_tabs_on_exit_title"
|
||||
+ android:summary="@string/close_tabs_on_exit_summary"
|
||||
|
|
|
@ -32,7 +32,7 @@ diff --git a/chrome/android/java/res/xml/website_preferences.xml b/chrome/androi
|
|||
android:defaultValue="false"
|
||||
android:persistent="false" />
|
||||
+ <!-- A toggle for cookies to be saved only until session exit, only shown for the Cookies category. -->
|
||||
+ <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
+ <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
+ android:key="cookies_session_only"
|
||||
+ android:title="@string/allow_cookies_session_only_title"
|
||||
+ android:summary="@string/allow_cookies_session_only_summary"
|
||||
|
|
|
@ -130,12 +130,12 @@ new file mode 100644
|
|||
+ xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
+ xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
+
|
||||
+ <org.chromium.chrome.browser.preferences.ChromeSwitchPreference
|
||||
+ <org.chromium.chrome.browser.settings.ChromeSwitchPreference
|
||||
+ android:key="doh_switch"
|
||||
+ android:summaryOn="@string/text_on"
|
||||
+ android:summaryOff="@string/text_off" />
|
||||
+
|
||||
+ <org.chromium.chrome.browser.preferences.HyperlinkPreference
|
||||
+ <org.chromium.chrome.browser.settings.HyperlinkPreference
|
||||
+ android:key="doh_help"
|
||||
+ android:title="@string/doh_help"
|
||||
+ app:url="@string/doh_help_url" />
|
||||
|
@ -143,7 +143,7 @@ new file mode 100644
|
|||
+ <Preference
|
||||
+ android:key="doh_edit"
|
||||
+ android:title="@string/options_doh_edit_label"
|
||||
+ android:fragment="org.chromium.chrome.browser.preferences.DoHEditor" />
|
||||
+ android:fragment="org.chromium.chrome.browser.settings.DoHEditor" />
|
||||
+
|
||||
+</PreferenceScreen>
|
||||
diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/android/java/res/xml/privacy_preferences.xml
|
||||
|
@ -154,7 +154,7 @@ diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/androi
|
|||
android:title="@string/can_make_payment_title"
|
||||
android:summary="@string/settings_can_make_payment_toggle_label" />
|
||||
+ <Preference
|
||||
+ android:fragment="org.chromium.chrome.browser.preferences.DoHPreferences"
|
||||
+ android:fragment="org.chromium.chrome.browser.settings.DoHPreferences"
|
||||
+ android:key="doh"
|
||||
+ android:title="@string/options_doh_title"
|
||||
+ android:summary="@string/options_doh_summary" />
|
||||
|
|
|
@ -40,7 +40,7 @@ diff --git a/chrome/browser/media/router/media_router_feature.cc b/chrome/browse
|
|||
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
|
||||
--- a/chrome/browser/profiles/profile.cc
|
||||
+++ b/chrome/browser/profiles/profile.cc
|
||||
@@ -226,7 +226,7 @@ void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
@@ -232,7 +232,7 @@ void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
prefs::kMediaRouterFirstRunFlowAcknowledged,
|
||||
false,
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
|
|
|
@ -91,21 +91,21 @@ diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/androi
|
|||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
- <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
- <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
- android:key="navigation_error"
|
||||
- android:title="@string/navigation_error_title"
|
||||
- android:summary="@string/navigation_error_summary"
|
||||
- android:defaultValue="true" />
|
||||
<org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
<org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
android:key="search_suggestions"
|
||||
android:title="@string/search_suggestions_title"
|
||||
android:summary="@string/search_suggestions_summary"
|
||||
android:defaultValue="true" />
|
||||
- <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
- <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
- android:key="safe_browsing_scout_reporting"
|
||||
- android:title="@string/safe_browsing_scout_reporting_title"
|
||||
- android:summary="@string/safe_browsing_scout_reporting_summary" />
|
||||
- <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
- <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
- android:key="safe_browsing"
|
||||
- android:title="@string/safe_browsing_title"
|
||||
- android:summary="@string/safe_browsing_summary" />
|
||||
|
@ -123,7 +123,7 @@ diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/androi
|
|||
- <android.support.v7.preference.Preference
|
||||
- android:key="usage_and_crash_reports"
|
||||
- android:title="@string/usage_and_crash_reports_title"
|
||||
- android:fragment="org.chromium.chrome.browser.preferences.privacy.UsageAndCrashReportsPreferenceFragment" />
|
||||
- android:fragment="org.chromium.chrome.browser.settings.privacy.UsageAndCrashReportsPreferenceFragment" />
|
||||
<Preference
|
||||
android:fragment="org.chromium.chrome.browser.settings.privacy.DoNotTrackPreference"
|
||||
android:key="do_not_track"
|
||||
|
|
|
@ -79,8 +79,8 @@ diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profil
|
|||
- true,
|
||||
+ false,
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
registry->RegisterBooleanPref(prefs::kSessionExitedCleanly, true);
|
||||
registry->RegisterStringPref(prefs::kSessionExitType, std::string());
|
||||
#if defined(OS_ANDROID)
|
||||
registry->RegisterStringPref(
|
||||
diff --git a/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html b/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html
|
||||
--- a/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html
|
||||
+++ b/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html
|
||||
|
|
|
@ -2,12 +2,11 @@ From: csagan5 <32685696+csagan5@users.noreply.github.com>
|
|||
Date: Sat, 28 Apr 2018 08:30:26 +0200
|
||||
Subject: Reduce HTTP headers in DoH requests to bare minimum
|
||||
|
||||
Serve DoH requests with maximum priority.
|
||||
---
|
||||
net/base/load_flags_list.h | 9 +++++++++
|
||||
net/dns/dns_transaction.cc | 3 ++-
|
||||
net/dns/dns_transaction.cc | 1 +
|
||||
net/url_request/url_request_http_job.cc | 16 +++++++++++-----
|
||||
3 files changed, 22 insertions(+), 6 deletions(-)
|
||||
3 files changed, 21 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/net/base/load_flags_list.h b/net/base/load_flags_list.h
|
||||
--- a/net/base/load_flags_list.h
|
||||
|
@ -36,15 +35,6 @@ diff --git a/net/dns/dns_transaction.cc b/net/dns/dns_transaction.cc
|
|||
LOAD_DISABLE_CERT_NETWORK_FETCHES);
|
||||
request_->set_allow_credentials(false);
|
||||
}
|
||||
@@ -1010,7 +1011,7 @@ class DnsTransactionImpl : public DnsTransaction,
|
||||
had_tcp_attempt_(false),
|
||||
first_server_index_(0),
|
||||
url_request_context_(url_request_context),
|
||||
- request_priority_(DEFAULT_PRIORITY) {
|
||||
+ request_priority_(MAXIMUM_PRIORITY) {
|
||||
DCHECK(session_.get());
|
||||
DCHECK(!hostname_.empty());
|
||||
DCHECK(!callback_.is_null());
|
||||
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
|
||||
--- a/net/url_request/url_request_http_job.cc
|
||||
+++ b/net/url_request/url_request_http_job.cc
|
||||
|
|
|
@ -3,102 +3,116 @@ Date: Sun, 3 Nov 2019 08:22:29 +0100
|
|||
Subject: Remove SMS integration
|
||||
|
||||
---
|
||||
content/public/android/BUILD.gn | 2 -
|
||||
.../content/browser/sms/Wrappers.java | 74 -------------------
|
||||
2 files changed, 76 deletions(-)
|
||||
delete mode 100644 content/public/android/java/src/org/chromium/content/browser/sms/Wrappers.java
|
||||
.../content/browser/sms/SmsReceiver.java | 29 +++----------------
|
||||
.../content/browser/sms/Wrappers.java | 11 +------
|
||||
2 files changed, 5 insertions(+), 35 deletions(-)
|
||||
|
||||
diff --git a/content/public/android/BUILD.gn b/content/public/android/BUILD.gn
|
||||
--- a/content/public/android/BUILD.gn
|
||||
+++ b/content/public/android/BUILD.gn
|
||||
@@ -232,8 +232,6 @@ android_library("content_java") {
|
||||
"java/src/org/chromium/content/browser/selection/SmartSelectionClient.java",
|
||||
"java/src/org/chromium/content/browser/selection/SmartSelectionMetricsLogger.java",
|
||||
"java/src/org/chromium/content/browser/selection/SmartSelectionProvider.java",
|
||||
- "java/src/org/chromium/content/browser/sms/SmsReceiver.java",
|
||||
- "java/src/org/chromium/content/browser/sms/Wrappers.java",
|
||||
"java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java",
|
||||
"java/src/org/chromium/content/browser/webcontents/WebContentsObserverProxy.java",
|
||||
"java/src/org/chromium/content/common/ContentSwitchUtils.java",
|
||||
diff --git a/content/public/android/java/src/org/chromium/content/browser/sms/SmsReceiver.java b/content/public/android/java/src/org/chromium/content/browser/sms/SmsReceiver.java
|
||||
--- a/content/public/android/java/src/org/chromium/content/browser/sms/SmsReceiver.java
|
||||
+++ b/content/public/android/java/src/org/chromium/content/browser/sms/SmsReceiver.java
|
||||
@@ -11,11 +11,6 @@ import android.content.IntentFilter;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
-import com.google.android.gms.auth.api.phone.SmsRetriever;
|
||||
-import com.google.android.gms.common.api.CommonStatusCodes;
|
||||
-import com.google.android.gms.common.api.Status;
|
||||
-import com.google.android.gms.tasks.Task;
|
||||
-
|
||||
import org.chromium.base.ContextUtils;
|
||||
import org.chromium.base.Log;
|
||||
import org.chromium.base.annotations.CalledByNative;
|
||||
@@ -42,18 +37,6 @@ public class SmsReceiver extends BroadcastReceiver {
|
||||
mSmsProviderAndroid = smsProviderAndroid;
|
||||
|
||||
mContext = new Wrappers.SmsReceiverContext(ContextUtils.getApplicationContext());
|
||||
-
|
||||
- // A broadcast receiver is registered upon the creation of this class
|
||||
- // which happens when the SMS Retriever API is used for the first time
|
||||
- // since chrome last restarted (which, on android, happens frequently).
|
||||
- // The broadcast receiver is fairly lightweight (e.g. it responds
|
||||
- // quickly without much computation).
|
||||
- // If this broadcast receiver becomes more heavyweight, we should make
|
||||
- // this registration expire after the SMS message is received.
|
||||
- if (DEBUG) Log.d(TAG, "Registering intent filters.");
|
||||
- IntentFilter filter = new IntentFilter();
|
||||
- filter.addAction(SmsRetriever.SMS_RETRIEVED_ACTION);
|
||||
- mContext.registerReceiver(this, filter);
|
||||
}
|
||||
|
||||
@CalledByNative
|
||||
@@ -77,7 +60,7 @@ public class SmsReceiver extends BroadcastReceiver {
|
||||
return;
|
||||
}
|
||||
|
||||
- if (!SmsRetriever.SMS_RETRIEVED_ACTION.equals(intent.getAction())) {
|
||||
+/* if (!SmsRetriever.SMS_RETRIEVED_ACTION.equals(intent.getAction())) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -104,22 +87,18 @@ public class SmsReceiver extends BroadcastReceiver {
|
||||
if (DEBUG) Log.d(TAG, "Timeout");
|
||||
SmsReceiverJni.get().onTimeout(mSmsProviderAndroid);
|
||||
break;
|
||||
- }
|
||||
+ } */
|
||||
}
|
||||
|
||||
@CalledByNative
|
||||
private void listen() {
|
||||
- Wrappers.SmsRetrieverClientWrapper client = getClient();
|
||||
- Task<Void> task = client.startSmsRetriever();
|
||||
-
|
||||
- if (DEBUG) Log.d(TAG, "Installed task");
|
||||
}
|
||||
|
||||
private Wrappers.SmsRetrieverClientWrapper getClient() {
|
||||
- if (mClient != null) {
|
||||
+/* if (mClient != null) {
|
||||
return mClient;
|
||||
}
|
||||
- mClient = new Wrappers.SmsRetrieverClientWrapper(SmsRetriever.getClient(mContext));
|
||||
+ mClient = new Wrappers.SmsRetrieverClientWrapper(SmsRetriever.getClient(mContext)); */
|
||||
return mClient;
|
||||
}
|
||||
|
||||
diff --git a/content/public/android/java/src/org/chromium/content/browser/sms/Wrappers.java b/content/public/android/java/src/org/chromium/content/browser/sms/Wrappers.java
|
||||
deleted file mode 100644
|
||||
--- a/content/public/android/java/src/org/chromium/content/browser/sms/Wrappers.java
|
||||
+++ /dev/null
|
||||
@@ -1,74 +0,0 @@
|
||||
-// Copyright 2019 The Chromium Authors. All rights reserved.
|
||||
-// Use of this source code is governed by a BSD-style license that can be
|
||||
-// found in the LICENSE file.
|
||||
-
|
||||
-package org.chromium.content.browser.sms;
|
||||
-
|
||||
-import android.content.BroadcastReceiver;
|
||||
-import android.content.Context;
|
||||
-import android.content.ContextWrapper;
|
||||
-import android.content.Intent;
|
||||
-import android.content.IntentFilter;
|
||||
-
|
||||
+++ b/content/public/android/java/src/org/chromium/content/browser/sms/Wrappers.java
|
||||
@@ -10,9 +10,6 @@ import android.content.ContextWrapper;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
|
||||
-import com.google.android.gms.auth.api.phone.SmsRetrieverClient;
|
||||
-import com.google.android.gms.tasks.Task;
|
||||
-
|
||||
-class Wrappers {
|
||||
- // Prevent instantiation.
|
||||
- private Wrappers() {}
|
||||
-
|
||||
- /**
|
||||
- * Wraps com.google.android.gms.auth.api.phone.SmsRetrieverClient.
|
||||
- */
|
||||
- static class SmsRetrieverClientWrapper {
|
||||
class Wrappers {
|
||||
// Prevent instantiation.
|
||||
private Wrappers() {}
|
||||
@@ -21,11 +18,9 @@ class Wrappers {
|
||||
* Wraps com.google.android.gms.auth.api.phone.SmsRetrieverClient.
|
||||
*/
|
||||
static class SmsRetrieverClientWrapper {
|
||||
- private final SmsRetrieverClient mSmsRetrieverClient;
|
||||
- private SmsReceiverContext mContext;
|
||||
-
|
||||
private SmsReceiverContext mContext;
|
||||
|
||||
- public SmsRetrieverClientWrapper(SmsRetrieverClient smsRetrieverClient) {
|
||||
- mSmsRetrieverClient = smsRetrieverClient;
|
||||
- }
|
||||
-
|
||||
- public void setContext(SmsReceiverContext context) {
|
||||
- mContext = context;
|
||||
- }
|
||||
-
|
||||
- public SmsReceiverContext getContext() {
|
||||
- return mContext;
|
||||
- }
|
||||
+ public SmsRetrieverClientWrapper() {
|
||||
}
|
||||
|
||||
public void setContext(SmsReceiverContext context) {
|
||||
@@ -35,10 +30,6 @@ class Wrappers {
|
||||
public SmsReceiverContext getContext() {
|
||||
return mContext;
|
||||
}
|
||||
-
|
||||
- public Task<Void> startSmsRetriever() {
|
||||
- return mSmsRetrieverClient.startSmsRetriever();
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- /**
|
||||
- * Extends android.content.ContextWrapper to store and retrieve the
|
||||
- * registered BroadcastReceiver.
|
||||
- */
|
||||
- static class SmsReceiverContext extends ContextWrapper {
|
||||
- private BroadcastReceiver mReceiver;
|
||||
-
|
||||
- public SmsReceiverContext(Context context) {
|
||||
- super(context);
|
||||
- }
|
||||
-
|
||||
- public BroadcastReceiver getRegisteredReceiver() {
|
||||
- return mReceiver;
|
||||
- }
|
||||
-
|
||||
- // ---------------------------------------------------------------------
|
||||
- // Context overrides:
|
||||
-
|
||||
- @Override
|
||||
- public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
|
||||
- mReceiver = receiver;
|
||||
- return super.registerReceiver(receiver, filter);
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public void unregisterReceiver(BroadcastReceiver receiver) {
|
||||
- mReceiver = null;
|
||||
- super.unregisterReceiver(receiver);
|
||||
- }
|
||||
- }
|
||||
-}
|
||||
}
|
||||
|
||||
/**
|
||||
--
|
||||
2.17.1
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ Unified consent miscellanous backport fixes
|
|||
.../sync/SyncNotificationController.java | 11 ++-
|
||||
.../chrome/browser/sync/SyncTestRule.java | 9 +-
|
||||
.../chromium/chrome/browser/sync/UkmTest.java | 50 +++++++++-
|
||||
chrome/browser/profiles/profile.cc | 6 --
|
||||
.../strings/android_chrome_strings.grd | 15 +++
|
||||
.../android_chrome_strings_am.xtb | 19 +++-
|
||||
.../android_chrome_strings_ar.xtb | 19 +++-
|
||||
|
@ -72,7 +71,7 @@ Unified consent miscellanous backport fixes
|
|||
.../android_chrome_strings_zh-CN.xtb | 19 +++-
|
||||
.../android_chrome_strings_zh-TW.xtb | 19 +++-
|
||||
.../unified_consent_service_factory.cc | 5 +-
|
||||
63 files changed, 1129 insertions(+), 83 deletions(-)
|
||||
62 files changed, 1129 insertions(+), 77 deletions(-)
|
||||
|
||||
diff --git a/chrome/android/feed/dummy/java/src/org/chromium/chrome/browser/feed/FeedNewTabPage.java b/chrome/android/feed/dummy/java/src/org/chromium/chrome/browser/feed/FeedNewTabPage.java
|
||||
--- a/chrome/android/feed/dummy/java/src/org/chromium/chrome/browser/feed/FeedNewTabPage.java
|
||||
|
@ -105,21 +104,21 @@ diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/androi
|
|||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
+ <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
+ <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
+ android:key="navigation_error"
|
||||
+ android:title="@string/navigation_error_title"
|
||||
+ android:summary="@string/navigation_error_summary"
|
||||
+ android:defaultValue="true" />
|
||||
+ <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
+ <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
+ android:key="search_suggestions"
|
||||
+ android:title="@string/search_suggestions_title"
|
||||
+ android:summary="@string/search_suggestions_summary"
|
||||
+ android:defaultValue="true" />
|
||||
+ <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
+ <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
+ android:key="safe_browsing_scout_reporting"
|
||||
+ android:title="@string/safe_browsing_scout_reporting_title"
|
||||
+ android:summary="@string/safe_browsing_scout_reporting_summary" />
|
||||
+ <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference
|
||||
+ <org.chromium.chrome.browser.settings.ChromeBaseCheckBoxPreference
|
||||
+ android:key="safe_browsing"
|
||||
+ android:title="@string/safe_browsing_title"
|
||||
+ android:summary="@string/safe_browsing_summary" />
|
||||
|
@ -133,7 +132,7 @@ diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/androi
|
|||
+ <android.support.v7.preference.Preference
|
||||
+ android:key="usage_and_crash_reports"
|
||||
+ android:title="@string/usage_and_crash_reports_title"
|
||||
+ android:fragment="org.chromium.chrome.browser.preferences.privacy.UsageAndCrashReportsPreferenceFragment" />
|
||||
+ android:fragment="org.chromium.chrome.browser.settings.privacy.UsageAndCrashReportsPreferenceFragment" />
|
||||
<Preference
|
||||
android:fragment="org.chromium.chrome.browser.settings.privacy.DoNotTrackPreference"
|
||||
android:key="do_not_track"
|
||||
|
@ -457,22 +456,6 @@ diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/sync/UkmTe
|
|||
+ }
|
||||
}
|
||||
}
|
||||
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
|
||||
--- a/chrome/browser/profiles/profile.cc
|
||||
+++ b/chrome/browser/profiles/profile.cc
|
||||
@@ -151,12 +151,6 @@ void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
prefs::kSearchSuggestEnabled,
|
||||
true,
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
-#if defined(OS_ANDROID)
|
||||
- registry->RegisterStringPref(
|
||||
- prefs::kContextualSearchEnabled,
|
||||
- std::string(),
|
||||
- user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
-#endif // defined(OS_ANDROID)
|
||||
registry->RegisterBooleanPref(prefs::kSessionExitedCleanly, true);
|
||||
registry->RegisterStringPref(prefs::kSessionExitType, std::string());
|
||||
registry->RegisterInt64Pref(prefs::kSiteEngagementLastUpdateTime, 0,
|
||||
diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||||
--- a/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||||
+++ b/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||||
|
|
Loading…
Add table
Reference in a new issue