Skip to content

Commit

Permalink
Fix TabSpecificContentSettings::Get.
Browse files Browse the repository at this point in the history
BUG=161858
TEST=as in bug

Review URL: https://codereview.chromium.org/11418187

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169809 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
avi@chromium.org committed Nov 28, 2012
1 parent 5a4fee6 commit 859923a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ TabSpecificContentSettings* TabSpecificContentSettings::Get(
if (!view)
return NULL;

return TabSpecificContentSettings::FromWebContents(
WebContents::FromRenderViewHost(view));
WebContents* web_contents = WebContents::FromRenderViewHost(view);
if (!web_contents)
return NULL;

return TabSpecificContentSettings::FromWebContents(web_contents);
}

// static
Expand Down

0 comments on commit 859923a

Please sign in to comment.