DescriptionSet user-visible machine names and devices types for synced sessions.
On OSX:
- Read the computer name, falling back to reading hw.model and stripping any trialing numbers. This will give us
something like MacBookPro, iMac, MacBookAir.
On Linux:
- Use distro name which gives something like "Ubuntu 10.04.2 LTS".
On Windows:
- Use the computer name
On ChromeOS:
- Use "Chromebook"
BUG=94693, 59672
TEST=enable session sync, sync two clients, and then look at the entries in about:sync and see that the "client_name" is set
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99391
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99450
Patch Set 1 #Patch Set 2 : Add usage of TYPE_OTHER #Patch Set 3 : Set device_type for SessionHeader #
Total comments: 22
Patch Set 4 : Split off platform-specific code to various util files, addressed comments #
Total comments: 15
Patch Set 5 : Localized changes back sync/glue/ #
Total comments: 10
Patch Set 6 : Changed mac name retrieval, other fixes #
Total comments: 10
Patch Set 7 : Mac cleanup #
Total comments: 1
Patch Set 8 : style fix #Patch Set 9 : Fix tests #Messages
Total messages: 26 (0 generated)
|