Chromium Code Reviews
DescriptionShade uninitialized about:sync fields
This change includes the UI and C++ changes required to highlight
uninitialized fields in about:sync.
On the UI side, the sync details now include an 'is_valid' field which
drives some logic in jstemplate and CSS that will change the gray out
the text for uninitialized values.
The is_valid field is populated in sync_ui_util. The Add*SyncDetails()
functions now take an additional 'is_valid' parameter, which indicates
whether or not the value is believed to have originated from within
sync, rather than some default constructor.
The signature for ProfileSyncService::QueryDetailedSyncStatus() has been
modified to return an additional parameter indicating whether or not the
returned status actually came from the backend. This is used to
populate the 'is_valid' field for the many about:sync fields whose
values originate from this function.
The SyncSesionSnapshot takes a different approach. The object is
immutable and has two constructors. If it is constructed with the
zero-argument constructor it is clearly uninitialized, and will remain
so. This change adds a flag which is set or unset based on which
constructor is used. This flag is used to populte the 'is_valid' field
for about:sync values populated from the snapshot.
BUG=134927
TEST=
Patch Set 1 #Patch Set 2 : Minor fixes #Patch Set 3 : Rebase #Patch Set 4 : Update mocks #Patch Set 5 : Fix another mock issue #Patch Set 6 : Another namespace change, another rebase #Patch Set 7 : Fix one more test error #
Total comments: 2
Messages
Total messages: 5 (0 generated)
|