diff options
author | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-29 22:07:44 +0000 |
---|---|---|
committer | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-29 22:07:44 +0000 |
commit | eecbb25cf6bd3a0ab00b1f701217476613f8083e (patch) | |
tree | 73c382ed9360ee997ddc21f612703f3c40dc1991 /content/browser/webui/web_ui_impl.cc | |
parent | 252ee5370cce1d904172c98fe668780210f7efc2 (diff) | |
download | chromium_src-eecbb25cf6bd3a0ab00b1f701217476613f8083e.zip chromium_src-eecbb25cf6bd3a0ab00b1f701217476613f8083e.tar.gz chromium_src-eecbb25cf6bd3a0ab00b1f701217476613f8083e.tar.bz2 |
Fix NULL crash.
BUG=129904
Review URL: https://chromiumcodereview.appspot.com/10444066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/webui/web_ui_impl.cc')
-rw-r--r-- | content/browser/webui/web_ui_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/webui/web_ui_impl.cc b/content/browser/webui/web_ui_impl.cc index 493bb31..13c63c8 100644 --- a/content/browser/webui/web_ui_impl.cc +++ b/content/browser/webui/web_ui_impl.cc @@ -82,8 +82,8 @@ bool WebUIImpl::OnMessageReceived(const IPC::Message& message) { void WebUIImpl::OnWebUISend(const GURL& source_url, const std::string& message, const ListValue& args) { - bool data_urls_allowed = - web_contents_->GetDelegate()->CanLoadDataURLsInWebUI(); + content::WebContentsDelegate* delegate = web_contents_->GetDelegate(); + bool data_urls_allowed = delegate && delegate->CanLoadDataURLsInWebUI(); content::WebUIControllerFactory* factory = content::GetContentClient()->browser()->GetWebUIControllerFactory(); if (!ChildProcessSecurityPolicyImpl::GetInstance()-> |