less const in WebContents

https://chromium-review.googlesource.com/c/1349466
This commit is contained in:
Jeremy Apthorp 2019-01-09 12:12:44 -08:00
parent 8948e27ced
commit 96ca070c3a

View file

@ -240,7 +240,7 @@ namespace api {
namespace { namespace {
content::ServiceWorkerContext* GetServiceWorkerContext( content::ServiceWorkerContext* GetServiceWorkerContext(
const content::WebContents* web_contents) { content::WebContents* web_contents) {
auto* context = web_contents->GetBrowserContext(); auto* context = web_contents->GetBrowserContext();
auto* site_instance = web_contents->GetSiteInstance(); auto* site_instance = web_contents->GetSiteInstance();
if (!context || !site_instance) if (!context || !site_instance)
@ -1129,7 +1129,7 @@ void WebContents::NavigationEntryCommitted(
void WebContents::SetBackgroundThrottling(bool allowed) { void WebContents::SetBackgroundThrottling(bool allowed) {
background_throttling_ = allowed; background_throttling_ = allowed;
const auto* contents = web_contents(); auto* contents = web_contents();
if (!contents) { if (!contents) {
return; return;
} }