| Index: extensions/browser/extension_function.cc
|
| diff --git a/extensions/browser/extension_function.cc b/extensions/browser/extension_function.cc
|
| index 773f027bac20c4e618c1b17cd5bfc24ab791f035..aec46e69316c384a4a8923ba8ee9ef8de1205f71 100644
|
| --- a/extensions/browser/extension_function.cc
|
| +++ b/extensions/browser/extension_function.cc
|
| @@ -375,11 +375,13 @@ void UIThreadExtensionFunction::SetRenderFrameHost(
|
| }
|
|
|
| content::WebContents* UIThreadExtensionFunction::GetAssociatedWebContents() {
|
| - content::WebContents* web_contents = NULL;
|
| - if (dispatcher())
|
| - web_contents = dispatcher()->delegate()->GetAssociatedWebContents();
|
| + return dispatcher() ? dispatcher()->delegate()->GetAssociatedWebContents()
|
| + : NULL;
|
| +}
|
|
|
| - return web_contents;
|
| +content::WebContents* UIThreadExtensionFunction::GetVisibleWebContents() {
|
| + return dispatcher() ? dispatcher()->delegate()->GetVisibleWebContents()
|
| + : NULL;
|
| }
|
|
|
| void UIThreadExtensionFunction::SendResponse(bool success) {
|
|
|