Index: content/ppapi_plugin/ppapi_thread.cc |
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc |
index cb0abde2ba136aadc4e0afc70437bdd9feb2665a..2d5e3db8e831ffc108fcc399e31f108e3446b294 100644 |
--- a/content/ppapi_plugin/ppapi_thread.cc |
+++ b/content/ppapi_plugin/ppapi_thread.cc |
@@ -9,6 +9,7 @@ |
#include "base/command_line.h" |
#include "base/cpu.h" |
#include "base/debug/crash_logging.h" |
+#include "base/file_util.h" |
#include "base/logging.h" |
#include "base/metrics/histogram.h" |
#include "base/metrics/sparse_histogram.h" |
@@ -275,6 +276,10 @@ void PpapiThread::OnLoadPlugin(const base::FilePath& path, |
if (!library.is_valid()) { |
LOG(ERROR) << "Failed to load Pepper module from " << path.value() |
<< " (error: " << error.ToString() << ")"; |
+ if (!base::PathExists(path)) { |
+ ReportLoadResult(path, FILE_MISSING); |
+ return; |
+ } |
ReportLoadResult(path, LOAD_FAILED); |
// Report detailed reason for load failure. |
ReportLoadErrorCode(path, error); |