DescriptionMakes the response to CheckNotificationPermission asynchronous.
Some data that's required to make a decision about notification
permissions is only available on the UI thread. The message requesting
the permission status is synchronous, which implies that it will arrive
on the IO thread. To get data on the appropriate thread (and stop a
crash in the wild), post task over to the UI thread to get the correct
data and return the response when available.
BUG=256638
Patch Set 1 #Patch Set 2 : #
|