Index: chrome/browser/chromeos/settings/owner_key_util.cc |
diff --git a/chrome/browser/chromeos/settings/owner_key_util.cc b/chrome/browser/chromeos/settings/owner_key_util.cc |
index fdde9dac0e22dad7b0fdd1e9c9e89911dcb5d0e8..98479cefc46325ba14feee093013264539b6476d 100644 |
--- a/chrome/browser/chromeos/settings/owner_key_util.cc |
+++ b/chrome/browser/chromeos/settings/owner_key_util.cc |
@@ -10,6 +10,7 @@ |
#include "base/logging.h" |
#include "base/path_service.h" |
#include "base/stl_util.h" |
+#include "base/sys_info.h" |
#include "chromeos/chromeos_paths.h" |
#include "crypto/rsa_private_key.h" |
@@ -58,7 +59,8 @@ bool OwnerKeyUtilImpl::ImportPublicKey(std::vector<uint8>* output) { |
// Get the file size (must fit in a 32 bit int for NSS). |
int64 file_size; |
if (!base::GetFileSize(key_file_, &file_size)) { |
- LOG(ERROR) << "Could not get size of " << key_file_.value(); |
+ LOG_IF(ERROR, base::SysInfo::IsRunningOnChromeOS()) |
+ << "Could not get size of " << key_file_.value(); |
return false; |
} |
if (file_size > static_cast<int64>(std::numeric_limits<int>::max())) { |