summaryrefslogtreecommitdiffstats
path: root/chrome/browser/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/diagnostics')
-rw-r--r--chrome/browser/diagnostics/recon_diagnostics.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/diagnostics/recon_diagnostics.cc b/chrome/browser/diagnostics/recon_diagnostics.cc
index 5752014..ac0548b 100644
--- a/chrome/browser/diagnostics/recon_diagnostics.cc
+++ b/chrome/browser/diagnostics/recon_diagnostics.cc
@@ -328,7 +328,11 @@ class JSONTest : public DiagnosticTest {
return true;
}
int64 file_size;
- file_util::GetFileSize(path_, &file_size);
+ if (!file_util::GetFileSize(path_, &file_size)) {
+ RecordFailure(ASCIIToUTF16("Cannot obtain file size"));
+ return true;
+ }
+
if (file_size > max_file_size_) {
RecordFailure(ASCIIToUTF16("File too big"));
return true;