Commit 41f6ef7e authored by Himanshu Jaju's avatar Himanshu Jaju Committed by Commit Bot

Use hardware_info when renaming devices.

Consistently use hardware_info while renaming devices in SharingService.
This allows us to locally modify manufacturer names at a single place.

Bug: 1016332
Change-Id: I309ddc4abb93242ba496666996badefbf10c24a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1878650Reviewed-by: default avatarRichard Knoll <knollr@chromium.org>
Commit-Queue: Himanshu Jaju <himanshujaju@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709058}
parent 7c921a71
......@@ -99,8 +99,7 @@ DeviceNames GetDeviceNames(const syncer::DeviceInfo* device) {
// For chromeOS, return manufacturer + model.
if (type == sync_pb::SyncEnums::TYPE_CROS) {
device_names.short_name = device_names.full_name =
base::StrCat({device->hardware_info().manufacturer, " ",
device->hardware_info().model});
base::StrCat({hardware_info.manufacturer, " ", hardware_info.model});
return device_names;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment