Commit 5cfe7ab4 authored by Oleg Davydov's avatar Oleg Davydov Committed by Commit Bot

Remove unnecessary intermediate profile while getting blacklist service from browser context

Change-Id: Icf0e005780283a07dd76f52972811dce4ebfaed8
Reviewed-on: https://chromium-review.googlesource.com/c/1448184Reviewed-by: default avatarMichael Giuffrida <michaelpg@chromium.org>
Commit-Queue: Oleg Davydov <burunduk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#628304}
parent cac8cf5d
...@@ -1005,10 +1005,9 @@ void LaunchURL( ...@@ -1005,10 +1005,9 @@ void LaunchURL(
} }
bool is_whitelisted = false; bool is_whitelisted = false;
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
PolicyBlacklistService* service = PolicyBlacklistService* service =
PolicyBlacklistFactory::GetForBrowserContext(profile); PolicyBlacklistFactory::GetForBrowserContext(
web_contents->GetBrowserContext());
if (service) { if (service) {
const policy::URLBlacklist::URLBlacklistState url_state = const policy::URLBlacklist::URLBlacklistState url_state =
service->GetURLBlacklistState(url); service->GetURLBlacklistState(url);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment