[Nearby] Create default device name
Create a default device name of the form <profile name>'s <device model>. The profile name is retrieved in the same way as profile_info_handler.cc [1]. So, the name should be consistent with the one shown in Settings > "You and Google". The device model is set to model name from SysInfo HardwareInfo. If the model name is empty, a variation of "Chromebook" is used for Chrome OS and "device" for other platforms. [1]https://source.chromium.org/chromium/chromium/src/+/master:chrome/browser/ui/webui/settings/profile_info_handler.cc;l=132-168;drc=b93f16ad9f7a986d964033bbd539a8eec677bfbf Bug: b/154863679, 1127017 Change-Id: I219cc3965ae0180f66c3953f0a9213dc5c55a1fe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2298169 Commit-Queue: Josh Nohle <nohle@chromium.org> Reviewed-by:James Vecore <vecore@google.com> Cr-Commit-Position: refs/heads/master@{#806294}
Showing
Please register or sign in to comment