DescriptionTurn on Synced Notification Sending services by default for all users, and save preferences.
This is for the new Synced Notification feature, which allows servers to send notification toasts to the chrome message center (also called the notification center).
As things stand today (before this checkin), Synced Notifications is enabled, but each data type from an individual server needs to be intentionally enabled by the user finding the notification center settings panel and clicking a check box for that service to the "enabled" state.
After lots of rounds of UI discussion we decided the best experience for the user is to default the sending services to enabled instead of the way it defaults to disabled today.
So, the goal of this checkin is just to change the state of the existing synced notification type from disabled to enabled by default.
As it turns out, it wasn't as easy as just changing false to true somewhere. We opted (after the first round of code review) for a scheme that maintains two preference lists, a list of enabled synced notification services (which we will now add our first sending service to, and in the future we plan to add other services), and a list of preferences that we have "initialized" (or basically turned them on by default once). We need the second list because we are turning the service on at runtime, and if the user later wants to turn the service off, we need to remember and not just turn it on again. I intended to describe this part adequately in my changelist, but apparently I didn't describe it well enough, and I'll try to amend the description.
BUG=280250
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224080
Patch Set 1 #
Total comments: 10
Patch Set 2 : Enable G+ by default - CR fixes per DewittJ #Patch Set 3 : Enable G+ by default - Use a pref list for enabled services #Patch Set 4 : Enable G+ by default - Use a pref list for enabled services #Patch Set 5 : Enable G+ by default - Use a pref list for enabled services #Patch Set 6 : Enable G+ by default - Use a pref list for enabled services #
Total comments: 7
Patch Set 7 : Enable G+ by default - More CR fixes per DewittJ #
Total comments: 8
Patch Set 8 : Enable G+ by default - Use my pref variable in more places #Patch Set 9 : Enable G+ by default - fix windows compile #Patch Set 10 : Enable G+ by default - fix android compile #Patch Set 11 : Enable G+ by default - remove unneeded header on android #Messages
Total messages: 24 (0 generated)
|