From 96ca070c3a79b21143144ff11ecf634c490790e9 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Wed, 9 Jan 2019 12:12:44 -0800 Subject: [PATCH] less const in WebContents https://chromium-review.googlesource.com/c/1349466 --- atom/browser/api/atom_api_web_contents.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 37639571cd..4fe1091f46 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -240,7 +240,7 @@ namespace api { namespace { content::ServiceWorkerContext* GetServiceWorkerContext( - const content::WebContents* web_contents) { + content::WebContents* web_contents) { auto* context = web_contents->GetBrowserContext(); auto* site_instance = web_contents->GetSiteInstance(); if (!context || !site_instance) @@ -1129,7 +1129,7 @@ void WebContents::NavigationEntryCommitted( void WebContents::SetBackgroundThrottling(bool allowed) { background_throttling_ = allowed; - const auto* contents = web_contents(); + auto* contents = web_contents(); if (!contents) { return; }