less const in WebContents
https://chromium-review.googlesource.com/c/1349466
This commit is contained in:
parent
8948e27ced
commit
96ca070c3a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue