From 3f4f774838f01a6b91f699629c81cb8180f37823 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Wed, 27 Feb 2019 13:26:22 +0530 Subject: [PATCH] Remove const interfaces from content::ResourceRequestInfo. https://chromium-review.googlesource.com/c/chromium/src/+/1474632 --- .../browser/atom_resource_dispatcher_host_delegate.cc | 2 +- atom/browser/login_handler.cc | 11 +++++------ atom/browser/login_handler.h | 2 +- atom/browser/net/atom_network_delegate.cc | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/atom/browser/atom_resource_dispatcher_host_delegate.cc b/atom/browser/atom_resource_dispatcher_host_delegate.cc index 0775e716fb1c..4fdf651ba602 100644 --- a/atom/browser/atom_resource_dispatcher_host_delegate.cc +++ b/atom/browser/atom_resource_dispatcher_host_delegate.cc @@ -80,7 +80,7 @@ bool AtomResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( GURL* origin, std::string* payload) { #if BUILDFLAG(ENABLE_PDF_VIEWER) - const content::ResourceRequestInfo* info = + content::ResourceRequestInfo* info = content::ResourceRequestInfo::ForRequest(request); int render_process_host_id; diff --git a/atom/browser/login_handler.cc b/atom/browser/login_handler.cc index a427185120ba..a9332e1b96ba 100644 --- a/atom/browser/login_handler.cc +++ b/atom/browser/login_handler.cc @@ -20,12 +20,11 @@ using content::BrowserThread; namespace atom { -LoginHandler::LoginHandler( - net::URLRequest* request, - const net::AuthChallengeInfo& auth_info, - net::NetworkDelegate::AuthCallback callback, - net::AuthCredentials* credentials, - const content::ResourceRequestInfo* resource_request_info) +LoginHandler::LoginHandler(net::URLRequest* request, + const net::AuthChallengeInfo& auth_info, + net::NetworkDelegate::AuthCallback callback, + net::AuthCredentials* credentials, + content::ResourceRequestInfo* resource_request_info) : credentials_(credentials), auth_info_(&auth_info), auth_callback_(std::move(callback)), diff --git a/atom/browser/login_handler.h b/atom/browser/login_handler.h index 214b5fe87400..65e88a5c5439 100644 --- a/atom/browser/login_handler.h +++ b/atom/browser/login_handler.h @@ -26,7 +26,7 @@ class LoginHandler : public base::RefCountedThreadSafe { const net::AuthChallengeInfo& auth_info, net::NetworkDelegate::AuthCallback callback, net::AuthCredentials* credentials, - const content::ResourceRequestInfo* resource_request_info); + content::ResourceRequestInfo* resource_request_info); // The auth is cancelled, must be called on UI thread. void CancelAuth(); diff --git a/atom/browser/net/atom_network_delegate.cc b/atom/browser/net/atom_network_delegate.cc index a279fcd3b089..e84fae260caa 100644 --- a/atom/browser/net/atom_network_delegate.cc +++ b/atom/browser/net/atom_network_delegate.cc @@ -101,7 +101,7 @@ void ToDictionary(base::DictionaryValue* details, net::URLRequest* request) { FillRequestDetails(details, request); details->SetInteger("id", request->identifier()); details->SetDouble("timestamp", base::Time::Now().ToDoubleT() * 1000); - const auto* info = content::ResourceRequestInfo::ForRequest(request); + auto* info = content::ResourceRequestInfo::ForRequest(request); if (info) { details->SetString("resourceType", ResourceTypeToString(info->GetResourceType()));