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

Unified Diff: src/platform/update_engine/omaha_request_prep_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
« no previous file with comments | « src/platform/update_engine/main.cc ('k') | src/platform/update_engine/omaha_response_handler_action.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/update_engine/omaha_request_prep_action.cc
diff --git a/src/platform/update_engine/omaha_request_prep_action.cc b/src/platform/update_engine/omaha_request_prep_action.cc
index 8c015d84ef6d9246addd37f5e392698dba68274b..9e144a0ebbfb57bbf694d99287a9b78edef5f3a1 100644
--- a/src/platform/update_engine/omaha_request_prep_action.cc
+++ b/src/platform/update_engine/omaha_request_prep_action.cc
@@ -16,7 +16,8 @@ using std::string;
namespace {
const string OmahaIdPath() {
- return chromeos_update_engine::utils::kStatefulPartition + "/etc/omaha_id";
+ return string(chromeos_update_engine::utils::kStatefulPartition) +
+ "/etc/omaha_id";
}
} // namespace {}
@@ -89,7 +90,7 @@ bool OmahaRequestPrepAction::GetMachineId(std::string* out_id) const {
}
std::string OmahaRequestPrepAction::GetLsbValue(const std::string& key) const {
- string files[] = {utils::kStatefulPartition + "/etc/lsb-release",
+ string files[] = {string(utils::kStatefulPartition) + "/etc/lsb-release",
"/etc/lsb-release"};
for (unsigned int i = 0; i < arraysize(files); i++) {
string file_data;
« no previous file with comments | « src/platform/update_engine/main.cc ('k') | src/platform/update_engine/omaha_response_handler_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698