From 84768e735be7425b89b40c126ab27b6057fbbd31 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Sat, 28 Dec 2013 04:43:52 +0000 Subject: Renable org.chromium.chrome.browser.infobar.InfoBarTest#testInfoBarForPopUp which I reverted in r242660. TBR=nasko Review URL: https://codereview.chromium.org/120453005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242663 0039d316-1c4b-4281-b951-d872f2087c98 --- .../intercept_navigation_resource_throttle.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'components/navigation_interception') diff --git a/components/navigation_interception/intercept_navigation_resource_throttle.cc b/components/navigation_interception/intercept_navigation_resource_throttle.cc index 5a3d9d4..f8f094e 100644 --- a/components/navigation_interception/intercept_navigation_resource_throttle.cc +++ b/components/navigation_interception/intercept_navigation_resource_throttle.cc @@ -46,8 +46,10 @@ void CheckIfShouldIgnoreNavigationOnUIThread( content::WebContents* web_contents = content::WebContents::FromRenderFrameHost(render_frame_host); - should_ignore_navigation = should_ignore_callback.Run(web_contents, - validated_params); + if (web_contents) { + should_ignore_navigation = should_ignore_callback.Run(web_contents, + validated_params); + } } BrowserThread::PostTask( -- cgit v1.1