Enable component updater: components transferred to uazo.github.io
This commit is contained in:
@@ -26,18 +26,18 @@ License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
||||
.../prediction_model_download_manager.cc | 2 +-
|
||||
components/update_client/component.cc | 13 ++++++
|
||||
components/update_client/crx_downloader.cc | 5 ++
|
||||
components/update_client/net/network_impl.cc | 2 +
|
||||
components/update_client/net/network_impl.cc | 4 +-
|
||||
components/update_client/op_install.cc | 2 +-
|
||||
components/update_client/protocol_parser.cc | 2 +
|
||||
.../update_client/protocol_parser_json.cc | 2 +
|
||||
components/update_client/request_sender.cc | 3 +-
|
||||
components/update_client/request_sender.cc | 7 +--
|
||||
components/update_client/unpacker.cc | 7 +--
|
||||
components/update_client/unpacker.h | 4 +-
|
||||
components/update_client/update_checker.cc | 6 ++-
|
||||
components/update_client/update_engine.cc | 9 ++++
|
||||
components/update_client/utils.cc | 4 ++
|
||||
extensions/browser/sandboxed_unpacker.cc | 2 +-
|
||||
29 files changed, 155 insertions(+), 62 deletions(-)
|
||||
29 files changed, 158 insertions(+), 65 deletions(-)
|
||||
|
||||
diff --git a/android_webview/browser/aw_browser_main_parts.cc b/android_webview/browser/aw_browser_main_parts.cc
|
||||
--- a/android_webview/browser/aw_browser_main_parts.cc
|
||||
@@ -401,7 +401,7 @@ diff --git a/components/component_updater/component_updater_url_constants.cc b/c
|
||||
// --component-updater=url-source=someurl.
|
||||
const char kUpdaterJSONDefaultUrl[] =
|
||||
- "https://update.googleapis.com/service/update2/json";
|
||||
+ "https://www.cromite.org/components/query4_0.json";
|
||||
+ "https://uazo.github.io/cromite/components/query4_0.json";
|
||||
|
||||
const char kUpdaterJSONFallbackUrl[] =
|
||||
- "http://update.googleapis.com/service/update2/json";
|
||||
@@ -647,11 +647,20 @@ diff --git a/components/update_client/crx_downloader.cc b/components/update_clie
|
||||
diff --git a/components/update_client/net/network_impl.cc b/components/update_client/net/network_impl.cc
|
||||
--- a/components/update_client/net/network_impl.cc
|
||||
+++ b/components/update_client/net/network_impl.cc
|
||||
@@ -117,7 +117,7 @@ void NetworkFetcherImpl::PostRequest(
|
||||
PostRequestCompleteCallback post_request_complete_callback) {
|
||||
auto resource_request = std::make_unique<network::ResourceRequest>();
|
||||
resource_request->url = url;
|
||||
- resource_request->method = "POST";
|
||||
+ resource_request->method = "GET";
|
||||
resource_request->load_flags = net::LOAD_DISABLE_CACHE;
|
||||
resource_request->credentials_mode = network::mojom::CredentialsMode::kOmit;
|
||||
for (const auto& [name, value] : post_additional_headers) {
|
||||
@@ -131,7 +131,9 @@ void NetworkFetcherImpl::PostRequest(
|
||||
network::SimpleURLLoader::RETRY_ON_NETWORK_CHANGE);
|
||||
// The `Content-Type` header set by |AttachStringForUpload| overwrites any
|
||||
// `Content-Type` header present in the |ResourceRequest| above.
|
||||
+#if !BUILDFLAG(IS_ANDROID)
|
||||
+#if ((false)) && !BUILDFLAG(IS_ANDROID)
|
||||
simple_url_loader->AttachStringForUpload(post_data, content_type);
|
||||
+#endif
|
||||
simple_url_loader->SetOnResponseStartedCallback(base::BindOnce(
|
||||
@@ -720,6 +729,17 @@ diff --git a/components/update_client/request_sender.cc b/components/update_clie
|
||||
|
||||
if (!fetcher_factory_) {
|
||||
// The request was cancelled.
|
||||
@@ -133,8 +134,8 @@ void RequestSender::SendInternalComplete(
|
||||
const std::string& response_set_cookie,
|
||||
int retry_after_sec) {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
- VLOG(2) << "Omaha response received: " << response_body;
|
||||
- VLOG_IF(2, error) << "Omaha send error: " << error;
|
||||
+ LOG(INFO) << "Omaha response received: " << response_body;
|
||||
+ LOG(INFO) << "Omaha send error: " << error;
|
||||
|
||||
if (!error) {
|
||||
if (!use_signing_) {
|
||||
diff --git a/components/update_client/unpacker.cc b/components/update_client/unpacker.cc
|
||||
--- a/components/update_client/unpacker.cc
|
||||
+++ b/components/update_client/unpacker.cc
|
||||
|
||||
Reference in New Issue
Block a user