Skip to content

Commit 19cd8e5

Browse files
authored
Rebase to 131 (#1640)
Rebase to 131
2 parents eae1e04 + 01845cc commit 19cd8e5

File tree

207 files changed

+2981
-2795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+2981
-2795
lines changed

build/RELEASE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
130.0.6723.117
1+
131.0.6778.70

build/patches/AImageReader-CFI-crash-mitigations.patch

+10-20
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
2222
---
2323
base/android/android_image_reader_compat.cc | 16 ++++++++++++++++
2424
base/android/android_image_reader_compat.h | 14 ++++++++++++++
25-
chrome/browser/flag-metadata.json | 6 +++---
25+
chrome/browser/flag-metadata.json | 4 ++++
2626
.../AImageReader-CFI-crash-mitigations.inc | 4 ++++
2727
.../AImageReader-CFI-crash-mitigations.inc | 1 +
2828
gpu/config/gpu_driver_bug_list.json | 16 ++++++++++++++++
@@ -31,8 +31,8 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
3131
gpu/config/gpu_util.cc | 8 ++++++++
3232
gpu/config/gpu_workaround_list.txt | 1 +
3333
gpu/ipc/service/gpu_init.cc | 8 ++++++++
34-
gpu/ipc/service/stream_texture_android.cc | 11 ++++++++++-
35-
12 files changed, 87 insertions(+), 4 deletions(-)
34+
gpu/ipc/service/stream_texture_android.cc | 10 +++++++++-
35+
12 files changed, 87 insertions(+), 1 deletion(-)
3636
create mode 100644 cromite_flags/media/base/media_switches_cc/AImageReader-CFI-crash-mitigations.inc
3737
create mode 100644 cromite_flags/media/base/media_switches_h/AImageReader-CFI-crash-mitigations.inc
3838

@@ -90,13 +90,11 @@ diff --git a/base/android/android_image_reader_compat.h b/base/android/android_i
9090
diff --git a/chrome/browser/flag-metadata.json b/chrome/browser/flag-metadata.json
9191
--- a/chrome/browser/flag-metadata.json
9292
+++ b/chrome/browser/flag-metadata.json
93-
@@ -3430,9 +3430,9 @@
93+
@@ -3408,6 +3408,10 @@
94+
"name": "enable-identity-in-auth-error",
95+
9496
"expiry_milestone": 135
95-
},
96-
{
97-
- "name": "enable-image-reader",
98-
99-
- "expiry_milestone": 125
97+
+ },{
10098
+ "name": "enable-image-reader", // Bromite: do not expire
10199
+ "owners": [ "[email protected]", "[email protected]" ], // flag
102100
+ "expiry_milestone": -1
@@ -234,27 +232,19 @@ diff --git a/gpu/ipc/service/gpu_init.cc b/gpu/ipc/service/gpu_init.cc
234232
diff --git a/gpu/ipc/service/stream_texture_android.cc b/gpu/ipc/service/stream_texture_android.cc
235233
--- a/gpu/ipc/service/stream_texture_android.cc
236234
+++ b/gpu/ipc/service/stream_texture_android.cc
237-
@@ -6,6 +6,7 @@
238-
239-
#include <string.h>
240-
241-
+#include "base/android/android_image_reader_compat.h"
242-
#include "base/android/scoped_hardware_buffer_fence_sync.h"
243-
#include "base/feature_list.h"
244-
#include "base/functional/bind.h"
245-
@@ -49,7 +50,15 @@ std::unique_ptr<ui::ScopedMakeCurrent> MakeCurrent(
235+
@@ -50,7 +50,15 @@ std::unique_ptr<ui::ScopedMakeCurrent> MakeCurrent(
246236
}
247237

248238
TextureOwner::Mode GetTextureOwnerMode() {
249-
- return features::IsAImageReaderEnabled()
239+
- return base::android::EnableAndroidImageReader()
250240
+ const bool a_image_reader_supported =
251241
+ base::android::AndroidImageReader::GetInstance().IsSupported();
252242
+
253243
+ // TODO(vikassoni) : Currently we have 2 different flags to enable/disable
254244
+ // AImageReader - one for MCVD and other for MediaPlayer here. Merge those 2
255245
+ // flags into a single flag. Keeping the 2 flags separate for now since finch
256246
+ // experiment using this flag is in progress.
257-
+ return a_image_reader_supported && features::IsAImageReaderEnabled() &&
247+
+ return a_image_reader_supported && base::android::EnableAndroidImageReader() &&
258248
+ base::FeatureList::IsEnabled(features::kAImageReaderMediaPlayer)
259249
? TextureOwner::Mode::kAImageReaderInsecure
260250
: TextureOwner::Mode::kSurfaceTextureInsecure;

build/patches/Add-AllowUserCertificates-flag.patch

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/app/ChromeActiv
2828
import org.chromium.printing.PrintManagerDelegateImpl;
2929
import org.chromium.printing.PrintingController;
3030
import org.chromium.printing.PrintingControllerImpl;
31-
@@ -1045,6 +1046,8 @@ public abstract class ChromeActivity<C extends ChromeActivityComponent>
31+
@@ -1044,6 +1045,8 @@ public abstract class ChromeActivity<C extends ChromeActivityComponent>
3232

3333
ChromeActivitySessionTracker.getInstance().onStartWithNative(getProfileProviderSupplier());
3434
ChromeCachedFlags.getInstance().cacheNativeFlags();
@@ -40,7 +40,7 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/app/ChromeActiv
4040
diff --git a/chrome/browser/flags/android/chrome_feature_list.cc b/chrome/browser/flags/android/chrome_feature_list.cc
4141
--- a/chrome/browser/flags/android/chrome_feature_list.cc
4242
+++ b/chrome/browser/flags/android/chrome_feature_list.cc
43-
@@ -157,6 +157,7 @@ const base::Feature* const kFeaturesExposedToJava[] = {
43+
@@ -160,6 +160,7 @@ const base::Feature* const kFeaturesExposedToJava[] = {
4444
&feed::kFeedPerformanceStudy,
4545
&feed::kFeedShowSignInCommand,
4646
&feed::kFeedSignedOutViewDemotion,
@@ -51,15 +51,15 @@ diff --git a/chrome/browser/flags/android/chrome_feature_list.cc b/chrome/browse
5151
diff --git a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java b/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
5252
--- a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
5353
+++ b/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
54-
@@ -159,6 +159,7 @@ public abstract class ChromeFeatureList {
54+
@@ -161,6 +161,7 @@ public abstract class ChromeFeatureList {
5555
/* Alphabetical: */
5656
public static final String ACCOUNT_REAUTHENTICATION_RECENT_TIME_WINDOW =
5757
"AccountReauthenticationRecentTimeWindow";
5858
+ public static final String ALLOW_USER_CERTIFICATES = "AllowUserCertificates";
5959
public static final String ADAPTIVE_BUTTON_IN_TOP_TOOLBAR_PAGE_SUMMARY =
6060
"AdaptiveButtonInTopToolbarPageSummary";
6161
public static final String ADAPTIVE_BUTTON_IN_TOP_TOOLBAR_CUSTOMIZATION_V2 =
62-
@@ -583,6 +584,8 @@ public abstract class ChromeFeatureList {
62+
@@ -608,6 +609,8 @@ public abstract class ChromeFeatureList {
6363
public static final CachedFlag sAndroidTabDeclutterDedupeTabIdsKillSwitch =
6464
newCachedFlag(ANDROID_TAB_DECLUTTER_DEDUPE_TAB_IDS_KILL_SWITCH, true);
6565
public static final CachedFlag sAppSpecificHistory = newCachedFlag(APP_SPECIFIC_HISTORY, true);
@@ -68,14 +68,14 @@ diff --git a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/f
6868
public static final CachedFlag sAsyncNotificationManager =
6969
newCachedFlag(ASYNC_NOTIFICATION_MANAGER, false);
7070
public static final CachedFlag sBackGestureActivityTabProvider =
71-
@@ -746,6 +749,7 @@ public abstract class ChromeFeatureList {
71+
@@ -779,6 +782,7 @@ public abstract class ChromeFeatureList {
7272
public static final List<CachedFlag> sFlagsCachedFullBrowserChromium =
7373
List.of(
7474
sAccountReauthenticationRecentTimeWindow,
7575
+ sAllowUserCertificates,
7676
sAndroidAppIntegration,
77+
sAndroidAppIntegrationWithFavicon,
7778
sAndroidBottomToolbar,
78-
sAndroidElegantTextHeight,
7979
diff --git a/cromite_flags/chrome/browser/about_flags_cc/Add-AllowUserCertificates-flag.inc b/cromite_flags/chrome/browser/about_flags_cc/Add-AllowUserCertificates-flag.inc
8080
new file mode 100644
8181
--- /dev/null

build/patches/Add-IsCleartextPermitted-flag.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ new file mode 100644
4444
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
4545
--- a/net/url_request/url_request_http_job.cc
4646
+++ b/net/url_request/url_request_http_job.cc
47-
@@ -391,6 +391,11 @@ std::unique_ptr<URLRequestJob> URLRequestHttpJob::Create(URLRequest* request) {
47+
@@ -383,6 +383,11 @@ std::unique_ptr<URLRequestJob> URLRequestHttpJob::Create(URLRequest* request) {
4848
}
4949
}
5050

build/patches/Add-PartialLowEndModeOnMidRangeDevices-flag.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
1515
diff --git a/base/features.cc b/base/features.cc
1616
--- a/base/features.cc
1717
+++ b/base/features.cc
18-
@@ -108,6 +108,10 @@ BASE_FEATURE(kPostGetMyMemoryStateToBackground,
18+
@@ -121,6 +121,10 @@ BASE_FEATURE(kPostGetMyMemoryStateToBackground,
1919
FEATURE_DISABLED_BY_DEFAULT);
2020
#endif // BUILDFLAG(IS_ANDROID)
2121

build/patches/Add-a-flag-to-disable-GamePad-API.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
1414
diff --git a/chrome/browser/flag-metadata.json b/chrome/browser/flag-metadata.json
1515
--- a/chrome/browser/flag-metadata.json
1616
+++ b/chrome/browser/flag-metadata.json
17-
@@ -7884,9 +7884,9 @@
17+
@@ -7807,9 +7807,9 @@
1818
"expiry_milestone" : 130
1919
},
2020
{
@@ -29,7 +29,7 @@ diff --git a/chrome/browser/flag-metadata.json b/chrome/browser/flag-metadata.js
2929
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
3030
--- a/chrome/browser/flag_descriptions.cc
3131
+++ b/chrome/browser/flag_descriptions.cc
32-
@@ -3329,7 +3329,7 @@ const char kResetShortcutCustomizationsDescription[] =
32+
@@ -3331,7 +3331,7 @@ const char kResetShortcutCustomizationsDescription[] =
3333

3434
const char kRestrictGamepadAccessName[] = "Restrict gamepad access";
3535
const char kRestrictGamepadAccessDescription[] =
@@ -50,7 +50,7 @@ diff --git a/device/gamepad/public/cpp/gamepad_features.cc b/device/gamepad/publ
5050
diff --git a/third_party/blink/renderer/modules/gamepad/navigator_gamepad.cc b/third_party/blink/renderer/modules/gamepad/navigator_gamepad.cc
5151
--- a/third_party/blink/renderer/modules/gamepad/navigator_gamepad.cc
5252
+++ b/third_party/blink/renderer/modules/gamepad/navigator_gamepad.cc
53-
@@ -118,6 +118,10 @@ void RecordGamepadsForIdentifiabilityStudy(
53+
@@ -120,6 +120,10 @@ void RecordGamepadsForIdentifiabilityStudy(
5454
HeapVector<Member<Gamepad>> NavigatorGamepad::getGamepads(
5555
Navigator& navigator,
5656
ExceptionState& exception_state) {
@@ -61,7 +61,7 @@ diff --git a/third_party/blink/renderer/modules/gamepad/navigator_gamepad.cc b/t
6161
if (!navigator.DomWindow()) {
6262
// Using an existing NavigatorGamepad if one exists, but don't create one
6363
// for a detached window, as its subclasses depend on a non-null window.
64-
@@ -440,6 +444,8 @@ void NavigatorGamepad::SampleAndCompareGamepadState() {
64+
@@ -442,6 +446,8 @@ void NavigatorGamepad::SampleAndCompareGamepadState() {
6565

6666
void NavigatorGamepad::DispatchGamepadEvent(const AtomicString& event_name,
6767
Gamepad* gamepad) {

build/patches/Add-a-proxy-configuration-page.patch

+31-29
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
2929
chrome/browser/resources/proxy_config.html | 77 ++++
3030
chrome/browser/resources/proxy_config.js | 278 +++++++++++++
3131
chrome/browser/ui/BUILD.gn | 2 +
32-
.../webui/chrome_web_ui_controller_factory.cc | 3 +
32+
.../webui/chrome_web_ui_controller_factory.cc | 5 +-
3333
chrome/browser/ui/webui/proxy_config_ui.cc | 389 ++++++++++++++++++
3434
chrome/browser/ui/webui/proxy_config_ui.h | 31 ++
3535
chrome/common/webui_url_constants.cc | 2 +
@@ -40,7 +40,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
4040
.../proxy_config/proxy_policy_handler.cc | 2 +-
4141
net/proxy_resolution/proxy_config.cc | 51 ++-
4242
net/proxy_resolution/proxy_config.h | 3 +
43-
25 files changed, 973 insertions(+), 17 deletions(-)
43+
25 files changed, 974 insertions(+), 18 deletions(-)
4444
create mode 100644 chrome/browser/resources/proxy_config.css
4545
create mode 100644 chrome/browser/resources/proxy_config.html
4646
create mode 100644 chrome/browser/resources/proxy_config.js
@@ -84,7 +84,7 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/privacy/setting
8484
+ private static final String PREF_PROXY_OPTIONS = "proxy";
8585
private static final String PREF_PRIVACY_GUIDE = "privacy_guide";
8686
private static final String PREF_INCOGNITO_LOCK = "incognito_lock";
87-
private static final String PREF_THIRD_PARTY_COOKIES = "third_party_cookies";
87+
@VisibleForTesting static final String PREF_CLEAR_BROWSING_DATA = "clear_browsing_data";
8888
diff --git a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
8989
--- a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
9090
+++ b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
@@ -196,7 +196,7 @@ diff --git a/chrome/browser/net/proxy_service_factory.h b/chrome/browser/net/pro
196196
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
197197
--- a/chrome/browser/prefs/browser_prefs.cc
198198
+++ b/chrome/browser/prefs/browser_prefs.cc
199-
@@ -203,6 +203,8 @@
199+
@@ -202,6 +202,8 @@
200200
#include "printing/buildflags/buildflags.h"
201201
#include "rlz/buildflags/buildflags.h"
202202

@@ -205,7 +205,7 @@ diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browse
205205
#if BUILDFLAG(ENABLE_BACKGROUND_MODE)
206206
#include "chrome/browser/background/background_mode_manager.h"
207207
#endif
208-
@@ -1577,6 +1579,8 @@ void RegisterLocalState(PrefRegistrySimple* registry) {
208+
@@ -1652,6 +1654,8 @@ void RegisterLocalState(PrefRegistrySimple* registry) {
209209
component_updater::RegisterPrefs(registry);
210210
domain_reliability::RegisterPrefs(registry);
211211
embedder_support::OriginTrialPrefs::RegisterPrefs(registry);
@@ -660,7 +660,7 @@ new file mode 100644
660660
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
661661
--- a/chrome/browser/ui/BUILD.gn
662662
+++ b/chrome/browser/ui/BUILD.gn
663-
@@ -281,6 +281,8 @@ static_library("ui") {
663+
@@ -238,6 +238,8 @@ static_library("ui") {
664664
"webui/metrics_internals/metrics_internals_ui.h",
665665
"webui/net_export_ui.cc",
666666
"webui/net_export_ui.h",
@@ -672,23 +672,25 @@ diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
672672
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
673673
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
674674
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
675-
@@ -46,6 +46,7 @@
676-
#include "chrome/browser/ui/webui/media/media_engagement_ui.h"
677-
#include "chrome/browser/ui/webui/media/webrtc_logs_ui.h"
678-
#include "chrome/browser/ui/webui/policy/policy_ui.h"
675+
@@ -32,6 +32,7 @@
676+
#include "chrome/browser/ui/webui/about/about_ui.h"
677+
#include "chrome/browser/ui/webui/components/components_ui.h"
678+
#include "chrome/browser/ui/webui/crashes_ui.h"
679679
+#include "chrome/browser/ui/webui/proxy_config_ui.h"
680-
#include "chrome/browser/ui/webui/privacy_sandbox/privacy_sandbox_internals_ui.h"
681-
#include "chrome/browser/ui/webui/suggest_internals/suggest_internals_ui.h"
680+
#include "chrome/browser/ui/webui/download_internals/download_internals_ui.h"
681+
#include "chrome/browser/ui/webui/flags/flags_ui.h"
682682
#include "chrome/browser/ui/webui/webui_util.h"
683-
@@ -532,6 +533,8 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
684-
return &NewWebUI<SyncConfirmationUI>;
683+
@@ -261,7 +262,9 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
684+
history_clusters_internals::kChromeUIHistoryClustersInternalsHost) {
685+
return &NewWebUI<HistoryClustersInternalsUI>;
685686
}
686-
#endif // BUILDFLAG(IS_ANDROID)
687-
+ if (url.host_piece() == chrome::kChromeUIProxyConfigHost)
687+
-
688+
+ if (url.host_piece() == chrome::kChromeUIProxyConfigHost) {
688689
+ return &NewWebUI<ProxyConfigUI>;
689-
#if !BUILDFLAG(IS_CHROMEOS_ASH) && !BUILDFLAG(IS_ANDROID)
690-
if (url.host_piece() == chrome::kChromeUIManagedUserProfileNoticeHost) {
691-
return &NewWebUI<ManagedUserProfileNoticeUI>;
690+
+ }
691+
#if !BUILDFLAG(IS_ANDROID)
692+
if (url.host_piece() == chrome::kChromeUINewTabHost) {
693+
// The URL chrome://newtab/ can be either a virtual or a real URL,
692694
diff --git a/chrome/browser/ui/webui/proxy_config_ui.cc b/chrome/browser/ui/webui/proxy_config_ui.cc
693695
new file mode 100644
694696
--- /dev/null
@@ -1141,7 +1143,7 @@ diff --git a/chrome/common/webui_url_constants.cc b/chrome/common/webui_url_cons
11411143
diff --git a/chrome/common/webui_url_constants.h b/chrome/common/webui_url_constants.h
11421144
--- a/chrome/common/webui_url_constants.h
11431145
+++ b/chrome/common/webui_url_constants.h
1144-
@@ -176,6 +176,8 @@ inline constexpr char kChromeUINetExportURL[] = "chrome://net-export";
1146+
@@ -173,6 +173,8 @@ inline constexpr char kChromeUINetExportURL[] = "chrome://net-export";
11451147
inline constexpr char kChromeUINetInternalsHost[] = "net-internals";
11461148
inline constexpr char kChromeUINetInternalsURL[] = "chrome://net-internals/";
11471149
inline constexpr char kChromeUINewTabHost[] = "newtab";
@@ -1153,7 +1155,7 @@ diff --git a/chrome/common/webui_url_constants.h b/chrome/common/webui_url_const
11531155
diff --git a/components/proxy_config/pref_proxy_config_tracker_impl.cc b/components/proxy_config/pref_proxy_config_tracker_impl.cc
11541156
--- a/components/proxy_config/pref_proxy_config_tracker_impl.cc
11551157
+++ b/components/proxy_config/pref_proxy_config_tracker_impl.cc
1156-
@@ -244,14 +244,14 @@ PrefProxyConfigTrackerImpl::GetEffectiveProxyConfig(
1158+
@@ -253,14 +253,14 @@ PrefProxyConfigTrackerImpl::GetEffectiveProxyConfig(
11571159
// static
11581160
void PrefProxyConfigTrackerImpl::RegisterPrefs(PrefRegistrySimple* registry) {
11591161
registry->RegisterDictionaryPref(proxy_config::prefs::kProxy,
@@ -1170,7 +1172,7 @@ diff --git a/components/proxy_config/pref_proxy_config_tracker_impl.cc b/compone
11701172
registry->RegisterBooleanPref(proxy_config::prefs::kUseSharedProxies, false);
11711173
}
11721174

1173-
@@ -388,6 +388,7 @@ bool PrefProxyConfigTrackerImpl::PrefConfigToNetConfig(
1175+
@@ -412,6 +412,7 @@ bool PrefProxyConfigTrackerImpl::PrefConfigToNetConfig(
11741176
if (proxy_dict.GetBypassList(&proxy_bypass)) {
11751177
proxy_config.proxy_rules().bypass_rules.ParseFromString(proxy_bypass);
11761178
}
@@ -1319,16 +1321,16 @@ diff --git a/components/proxy_config/proxy_policy_handler.cc b/components/proxy_
13191321
diff --git a/net/proxy_resolution/proxy_config.cc b/net/proxy_resolution/proxy_config.cc
13201322
--- a/net/proxy_resolution/proxy_config.cc
13211323
+++ b/net/proxy_resolution/proxy_config.cc
1322-
@@ -124,7 +124,7 @@ void ProxyConfig::ProxyRules::ParseFromString(
1323-
ProxyServer::SCHEME_HTTP,
1324-
allow_bracketed_proxy_chains);
1324+
@@ -131,7 +131,7 @@ void ProxyConfig::ProxyRules::ParseFromString(const std::string& proxy_rules,
1325+
url_scheme, &single_proxies, ProxyServer::SCHEME_HTTP,
1326+
allow_bracketed_proxy_chains, is_quic_allowed);
13251327
type = Type::PROXY_LIST;
13261328
- return;
13271329
+ continue;
13281330
}
13291331

13301332
// Trim whitespace off the url scheme.
1331-
@@ -155,6 +155,55 @@ void ProxyConfig::ProxyRules::ParseFromString(
1333+
@@ -162,6 +162,55 @@ void ProxyConfig::ProxyRules::ParseFromString(const std::string& proxy_rules,
13321334
}
13331335
}
13341336

@@ -1387,10 +1389,10 @@ diff --git a/net/proxy_resolution/proxy_config.cc b/net/proxy_resolution/proxy_c
13871389
diff --git a/net/proxy_resolution/proxy_config.h b/net/proxy_resolution/proxy_config.h
13881390
--- a/net/proxy_resolution/proxy_config.h
13891391
+++ b/net/proxy_resolution/proxy_config.h
1390-
@@ -108,6 +108,9 @@ class NET_EXPORT ProxyConfig {
1391-
// URLs.
1392+
@@ -107,6 +107,9 @@ class NET_EXPORT ProxyConfig {
13921393
void ParseFromString(const std::string& proxy_rules,
1393-
bool allow_bracketed_proxy_chains = false);
1394+
bool allow_bracketed_proxy_chains = false,
1395+
bool is_quic_allowed = false);
13941396
+ // Returns the proxy rules in a format that can be parsed by ParseFromString;
13951397
+ // all information except bypass rules is used.
13961398
+ std::string ToString() const;

0 commit comments

Comments
 (0)