AU: No need to calculate SHA-256 on the payload twice for delta updates.

BUG=8200
TEST=unit test; tested on device

Change-Id: Ie8dcd3984c858ebf398f56c4e1a1dba31c95c700

Review URL: http://codereview.chromium.org/4111006
diff --git a/download_action.cc b/download_action.cc
index bb5d189..c17d7e2 100644
--- a/download_action.cc
+++ b/download_action.cc
@@ -123,7 +123,10 @@
     processor_->ActionComplete(this, kActionCodeDownloadWriteError);
     return;
   }
-  omaha_hash_calculator_.Update(bytes, length);
+  // DeltaPerformer checks the hashes for delta updates.
+  if (install_plan_.is_full_update) {
+    omaha_hash_calculator_.Update(bytes, length);
+  }
 }
 
 namespace {