Fix adblock filters patch
This commit is contained in:
parent
9a1f7c4242
commit
bf42b995a2
1 changed files with 5 additions and 4 deletions
|
@ -21,9 +21,9 @@ Subject: Add option to configure the ad blocker filters URL
|
|||
chrome/common/pref_names.h | 1 +
|
||||
.../adblock_updater_service.cc | 249 ++++++++++++++++++
|
||||
.../adblock_updater_service.h | 100 +++++++
|
||||
.../download_filters_task.cc | 221 ++++++++++++++++
|
||||
.../download_filters_task.cc | 222 ++++++++++++++++
|
||||
.../component_updater/download_filters_task.h | 129 +++++++++
|
||||
20 files changed, 1010 insertions(+), 1 deletion(-)
|
||||
20 files changed, 1011 insertions(+), 1 deletion(-)
|
||||
create mode 100644 chrome/android/java/res/layout/adblock_editor.xml
|
||||
create mode 100644 chrome/android/java/res/xml/adblock_preferences.xml
|
||||
create mode 100644 chrome/android/java/src/org/chromium/chrome/browser/settings/AdBlockEditor.java
|
||||
|
@ -872,7 +872,7 @@ diff --git a/components/component_updater/download_filters_task.cc b/components/
|
|||
new file mode 100644
|
||||
--- /dev/null
|
||||
+++ b/components/component_updater/download_filters_task.cc
|
||||
@@ -0,0 +1,221 @@
|
||||
@@ -0,0 +1,222 @@
|
||||
+/*
|
||||
+ This file is part of Bromite.
|
||||
+
|
||||
|
@ -946,7 +946,8 @@ new file mode 100644
|
|||
+
|
||||
+ auto resource_request = std::make_unique<network::ResourceRequest>();
|
||||
+ resource_request->url = filters_url_;
|
||||
+ resource_request->load_flags = net::LOAD_DO_NOT_SEND_AUTH_DATA | net::LOAD_BYPASS_CACHE | net::LOAD_DISABLE_CACHE | net::LOAD_DO_NOT_SEND_COOKIES | net::LOAD_DO_NOT_SAVE_COOKIES;
|
||||
+ resource_request->credentials_mode = network::mojom::CredentialsMode::kOmit;
|
||||
+ resource_request->load_flags = net::LOAD_BYPASS_CACHE | net::LOAD_DISABLE_CACHE | net::LOAD_DO_NOT_SAVE_COOKIES;
|
||||
+ resource_request->credentials_mode = network::mojom::CredentialsMode::kOmit;
|
||||
+ if (headers_only)
|
||||
+ // will chain two requests - first one is to check last modified header alone
|
||||
|
|
Loading…
Add table
Reference in a new issue