imageloader: style fixes in Component

Fixes some indentation errors and breaks one-line if-statements
into two lines.

BUG=None
TEST=unit tests

Change-Id: I90ad9a2df7940576e465db8ee0b402b9fbe957b0
Reviewed-on: https://chromium-review.googlesource.com/455252
Commit-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Greg Kerr <kerrnel@chromium.org>
diff --git a/component.cc b/component.cc
index 9815e77..1afaf62 100644
--- a/component.cc
+++ b/component.cc
@@ -89,7 +89,8 @@
 
 bool GetSHA256FromString(const std::string& hash_str,
                          std::vector<uint8_t>* bytes) {
-  if (!base::HexStringToBytes(hash_str, bytes)) return false;
+  if (!base::HexStringToBytes(hash_str, bytes))
+    return false;
   return bytes->size() == crypto::kSHA256Length;
 }
 
@@ -275,15 +276,17 @@
 }
 
 bool Component::CopyComponentFile(const base::FilePath& src,
-                                const base::FilePath& dest_path,
-                                const std::vector<uint8_t>& expected_hash) {
+                                  const base::FilePath& dest_path,
+                                  const std::vector<uint8_t>& expected_hash) {
   base::File file(src, base::File::FLAG_OPEN | base::File::FLAG_READ);
-  if (!file.IsValid()) return false;
+  if (!file.IsValid())
+    return false;
 
   base::ScopedFD dest(
       HANDLE_EINTR(open(dest_path.value().c_str(), O_CREAT | O_WRONLY | O_EXCL,
                         kComponentFilePerms)));
-  if (!dest.is_valid()) return false;
+  if (!dest.is_valid())
+    return false;
 
   base::File out_file(dest.release());
   std::unique_ptr<crypto::SecureHash> sha256(
@@ -308,7 +311,8 @@
   std::unique_ptr<crypto::SecureHash> sha256(
       crypto::SecureHash::Create(crypto::SecureHash::SHA256));
   int size = file->GetLength();
-  if (size <= 0) return false;
+  if (size <= 0)
+    return false;
 
   int rv = 0, bytes_read = 0;
   char buf[4096];
@@ -341,7 +345,8 @@
       return false;
     }
 
-    if (!IsValidFingerprintFile(fingerprint_contents)) return false;
+    if (!IsValidFingerprintFile(fingerprint_contents))
+      return false;
 
     if (!WriteFileToDisk(GetFingerprintPath(dest), fingerprint_contents)) {
       return false;
diff --git a/component.h b/component.h
index ac48872..7947678 100644
--- a/component.h
+++ b/component.h
@@ -74,7 +74,7 @@
   bool LoadManifest(const std::vector<uint8_t>& public_key);
   bool ParseManifest();
   bool CopyComponentFile(const base::FilePath& src, const base::FilePath& dest,
-                       const std::vector<uint8_t>& expected_hash);
+                         const std::vector<uint8_t>& expected_hash);
   // This reads the contents of |file|, hashes it with |sha256|, and if
   // |out_file| is not null, copies it into |out_file|.
   bool ReadHashAndCopyFile(base::File* file, std::vector<uint8_t>* sha256,