| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |    1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #include "update_engine/omaha_request_action.h" |    5 #include "update_engine/omaha_request_action.h" | 
|    6  |    6  | 
|    7 #include <inttypes.h> |    7 #include <inttypes.h> | 
|    8  |    8  | 
|    9 #include <sstream> |    9 #include <sstream> | 
|   10  |   10  | 
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  398  |  398  | 
|  399   // In best-effort fashion, fetch the rest of the expected attributes |  399   // In best-effort fashion, fetch the rest of the expected attributes | 
|  400   // from the updatecheck node, then return the object |  400   // from the updatecheck node, then return the object | 
|  401   output_object.update_exists = true; |  401   output_object.update_exists = true; | 
|  402   completer.set_code(kActionCodeSuccess); |  402   completer.set_code(kActionCodeSuccess); | 
|  403  |  403  | 
|  404   output_object.display_version = |  404   output_object.display_version = | 
|  405       XmlGetProperty(updatecheck_node, "DisplayVersion"); |  405       XmlGetProperty(updatecheck_node, "DisplayVersion"); | 
|  406   output_object.codebase = XmlGetProperty(updatecheck_node, "codebase"); |  406   output_object.codebase = XmlGetProperty(updatecheck_node, "codebase"); | 
|  407   output_object.more_info_url = XmlGetProperty(updatecheck_node, "MoreInfo"); |  407   output_object.more_info_url = XmlGetProperty(updatecheck_node, "MoreInfo"); | 
|  408   output_object.hash = XmlGetProperty(updatecheck_node, "hash"); |  408   output_object.hash = XmlGetProperty(updatecheck_node, "sha256"); | 
|  409   output_object.size = ParseInt(XmlGetProperty(updatecheck_node, "size")); |  409   output_object.size = ParseInt(XmlGetProperty(updatecheck_node, "size")); | 
|  410   output_object.needs_admin = |  410   output_object.needs_admin = | 
|  411       XmlGetProperty(updatecheck_node, "needsadmin") == "true"; |  411       XmlGetProperty(updatecheck_node, "needsadmin") == "true"; | 
|  412   output_object.prompt = XmlGetProperty(updatecheck_node, "Prompt") == "true"; |  412   output_object.prompt = XmlGetProperty(updatecheck_node, "Prompt") == "true"; | 
|  413   output_object.is_delta = |  413   output_object.is_delta = | 
|  414       XmlGetProperty(updatecheck_node, "IsDelta") == "true"; |  414       XmlGetProperty(updatecheck_node, "IsDelta") == "true"; | 
|  415   SetOutputObject(output_object); |  415   SetOutputObject(output_object); | 
|  416 } |  416 } | 
|  417  |  417  | 
|  418 };  // namespace chromeos_update_engine |  418 };  // namespace chromeos_update_engine | 
| OLD | NEW |