diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 03:24:06 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 03:24:06 +0000 |
commit | c1a6af48336ad3d215d04fac4ae79daf125b0a0e (patch) | |
tree | fbe13a70a9a8b3390fdf9817af058c365a1418a4 /chrome/browser/zygote_main_linux.cc | |
parent | c77702cddb59dd0b6304ca2c46a72aeec7ee84b0 (diff) | |
download | chromium_src-c1a6af48336ad3d215d04fac4ae79daf125b0a0e.zip chromium_src-c1a6af48336ad3d215d04fac4ae79daf125b0a0e.tar.gz chromium_src-c1a6af48336ad3d215d04fac4ae79daf125b0a0e.tar.bz2 |
Checking in Lei's fix from http://codereview.chromium.org/2827024: Don't crash if the pdf plugin couldn't be loaded.
BUG=47362
TBR=thestig
Review URL: http://codereview.chromium.org/2852026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50814 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/zygote_main_linux.cc')
-rw-r--r-- | chrome/browser/zygote_main_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/zygote_main_linux.cc b/chrome/browser/zygote_main_linux.cc index 6b6a8f9..cceb9bf 100644 --- a/chrome/browser/zygote_main_linux.cc +++ b/chrome/browser/zygote_main_linux.cc @@ -539,7 +539,7 @@ static void PreSandboxInit() { file_util::PathExists(pdf)) { static scoped_refptr<NPAPI::PluginLib> pdf_lib = NPAPI::PluginLib::CreatePluginLib(pdf); - bool rv = pdf_lib->EnsureAlwaysLoaded(); + bool rv = pdf_lib && pdf_lib->EnsureAlwaysLoaded(); DCHECK(rv) << "Couldn't load PDF plugin"; } } |