Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: chrome/browser/chromeos/settings/owner_key_util.cc

Issue 382403002: Reduce log spam for linux-chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert logging_chrome change Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos/network/host_resolver_impl_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())) {
« no previous file with comments | « no previous file | chromeos/network/host_resolver_impl_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698