Alexis WuFYI: I'm a gardener and I'm reverting crrev.com/c/7655624 that this CL may depend on.
Acknowledged
Bug: 489517728Alexis Wunit: prefer b:XXX for internal issues.
Done
Alexis WuFor the preferences being marked syncable in this file, IIUC this means they will be synced across all Chrome instances the user is signed in to. That is a significant behavior change and I'm not sure it is expected. Have this been agreed by Product and Privacy?
Hailey WangNo, for now we are just trying to have the clank version follow the desktop settings. @haile...@google.com might know more on Product decisions.
Carlos KnippschildLet's double check with Hena and others. If we are strictly following desktop settings, this does not seem to be syncable.
Alexis WuI'm not aware of any desktop settings that are account synced, and this CL seems to be changing that.
Reverted this change :)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
mSharedPreferencesManager.writeBoolean(sharedPreferenceKey, value);Is it safe to use the prefService here as the source of truth for writing to the share preference? If the prefService was never set, it would return the default value which would overwrite existing values in shared preference.
But maybe that scenario never happens...
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
mSharedPreferencesManager.writeBoolean(sharedPreferenceKey, value);Is it safe to use the prefService here as the source of truth for writing to the share preference? If the prefService was never set, it would return the default value which would overwrite existing values in shared preference.
But maybe that scenario never happens...
I think if the user has set it different from default, it should already been saved to prefService?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
mSharedPreferencesManager.writeBoolean(sharedPreferenceKey, value);Alexis WuIs it safe to use the prefService here as the source of truth for writing to the share preference? If the prefService was never set, it would return the default value which would overwrite existing values in shared preference.
But maybe that scenario never happens...
I think if the user has set it different from default, it should already been saved to prefService?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
RS LGTM
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
private <T extends ChromeSwitchPreference> T setupSwitchPreference(a comment would be nice on this function. I'm not familiar with the java side prefs logic, and this does look complex.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Added descriptive function :) PTAL, thanks!
private <T extends ChromeSwitchPreference> T setupSwitchPreference(a comment would be nice on this function. I'm not familiar with the java side prefs logic, and this does look complex.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Carlos KnippschildRS LGTM
Still LGTM
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[GlicSettings] Add Native Pref
Link the glic settings with C++ native preferences.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |