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

Unified Diff: src/platform/update_engine/omaha_response_handler_action.cc

Issue 492008: AU: Try delta updates first, then full updates (Closed)
Patch Set: use mkstemp Created 11 years 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
Index: src/platform/update_engine/omaha_response_handler_action.cc
diff --git a/src/platform/update_engine/omaha_response_handler_action.cc b/src/platform/update_engine/omaha_response_handler_action.cc
index 0a8472ea22aa9a10f9991fb167fdb25b7f4e355e..0a0a66098295b23a7c1800f1d2800ec5efc0b781 100644
--- a/src/platform/update_engine/omaha_response_handler_action.cc
+++ b/src/platform/update_engine/omaha_response_handler_action.cc
@@ -22,6 +22,7 @@ void OmahaResponseHandlerAction::PerformAction() {
ScopedActionCompleter completer(processor_, this);
const UpdateCheckResponse& response = GetInputObject();
if (!response.update_exists) {
+ got_no_update_response_ = true;
LOG(INFO) << "There are no updates. Aborting.";
return;
}
@@ -47,7 +48,8 @@ void OmahaResponseHandlerAction::PerformAction() {
filename.resize(255);
}
// TODO(adlr): come up with a better place to download to:
- install_plan.download_path = utils::kStatefulPartition + "/" + filename;
+ install_plan.download_path = string(utils::kStatefulPartition) + "/" +
+ filename;
if (HasOutputPipe())
SetOutputObject(install_plan);
LOG(INFO) << "Using this install plan:";

Powered by Google App Engine
This is Rietveld 408576698