DescriptionSome refactoring in file browser notifications:
- remove GDATA notification types (they're not used anymore).
- when creating notification id for DEVICE_FAIL notification, don't append count
of fail notifications for the failed device (this was used with the old system
notifications api to avoid removing and adding a notification with the same id
in short time span; there were some problems with updating notification message)
- make ShowNotificationWithMessage private
- instead of using switch/case when determining notification parameters for
type, get them from a global (file scoped) array
- make notification id prefixes more descriptive
- make sure there are not multiple DEVICE_HARD_UNPLUG messages for the same
(multipartition) device
TEST=existing
BUG=163252
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170318
Patch Set 1 #
Total comments: 2
Patch Set 2 : nits from review #Patch Set 3 : fix compile #
Messages
Total messages: 5 (0 generated)
|