| Index: chrome/browser/ui/external_protocol_dialog_delegate.cc
|
| diff --git a/chrome/browser/ui/external_protocol_dialog_delegate.cc b/chrome/browser/ui/external_protocol_dialog_delegate.cc
|
| index 20c662fd7872ba0a391b06e51ce28d1c877b9fdb..b1f9b9c78515e2ed449977f2d84fbc75fd11dad1 100644
|
| --- a/chrome/browser/ui/external_protocol_dialog_delegate.cc
|
| +++ b/chrome/browser/ui/external_protocol_dialog_delegate.cc
|
| @@ -75,7 +75,13 @@ void ExternalProtocolDialogDelegate::DoAccept(const GURL& url,
|
| void ExternalProtocolDialogDelegate::DoCancel(const GURL& url,
|
| bool dont_block) const {
|
| if (dont_block) {
|
| + content::WebContents* web_contents = tab_util::GetWebContentsByID(
|
| + render_process_host_id_, render_view_routing_id_);
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(web_contents->GetBrowserContext());
|
| +
|
| ExternalProtocolHandler::SetBlockState(url.scheme(),
|
| - ExternalProtocolHandler::BLOCK);
|
| + ExternalProtocolHandler::BLOCK,
|
| + profile);
|
| }
|
| }
|
|
|