update_engine: fix english
Fix the english for accuracy regarding DLC.
BUG=chromium:897882
TEST=None
Change-Id: I72ab9ecb7903bb5fb35597222cd7c8b1f4244cfc
Reviewed-on: https://chromium-review.googlesource.com/1351359
Commit-Ready: Xiaochu Liu <xiaochu@chromium.org>
Tested-by: Xiaochu Liu <xiaochu@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>
diff --git a/client_library/client_dbus.cc b/client_library/client_dbus.cc
index 2257d2e..e0d1f64 100644
--- a/client_library/client_dbus.cc
+++ b/client_library/client_dbus.cc
@@ -57,14 +57,14 @@
nullptr);
}
-bool DBusUpdateEngineClient::AttemptInstall(const string& omaha_url,
- const vector<string>& dlc_ids) {
+bool DBusUpdateEngineClient::AttemptInstall(
+ const string& omaha_url, const vector<string>& dlc_module_ids) {
// Convert parameters into protobuf.
chromeos_update_engine::DlcParameters dlc_parameters;
dlc_parameters.set_omaha_url(omaha_url);
- for (const auto& dlc_id : dlc_ids) {
+ for (const auto& dlc_module_id : dlc_module_ids) {
chromeos_update_engine::DlcInfo* dlc_info = dlc_parameters.add_dlc_infos();
- dlc_info->set_dlc_id(dlc_id);
+ dlc_info->set_dlc_id(dlc_module_id);
}
string dlc_request;
if (dlc_parameters.SerializeToString(&dlc_request)) {
diff --git a/client_library/client_dbus.h b/client_library/client_dbus.h
index 0fa2cc3..a186d45 100644
--- a/client_library/client_dbus.h
+++ b/client_library/client_dbus.h
@@ -42,7 +42,7 @@
bool at_user_request) override;
bool AttemptInstall(const std::string& omaha_url,
- const std::vector<std::string>& dlc_ids) override;
+ const std::vector<std::string>& dlc_module_ids) override;
bool GetStatus(int64_t* out_last_checked_time,
double* out_progress,
diff --git a/client_library/include/update_engine/client.h b/client_library/include/update_engine/client.h
index 183768d..1bc6111 100644
--- a/client_library/include/update_engine/client.h
+++ b/client_library/include/update_engine/client.h
@@ -48,16 +48,17 @@
const std::string& omaha_url,
bool at_user_request) = 0;
- // Request the update_engine to install a list of DLC.
+ // Request the update_engine to install a list of DLC modules.
// |omaha_url|
// Force update_engine to look for updates from the given server. Passing
// empty indicates update_engine should use its default value. Note that
// update_engine will ignore this parameter in production mode to avoid
// pulling untrusted updates.
- // |dlc_ids|
- // A vector of DLC IDs.
- virtual bool AttemptInstall(const std::string& omaha_url,
- const std::vector<std::string>& dlc_ids) = 0;
+ // |dlc_module_ids|
+ // A list of DLC module IDs.
+ virtual bool AttemptInstall(
+ const std::string& omaha_url,
+ const std::vector<std::string>& dlc_module_ids) = 0;
// Returns the current status of the Update Engine.
//