Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[UNO-d] Default isSyncActive to true for devtools
Preferences can now be saved to Google account for signed-in users
without enabling Chrome Sync on Win/Mac/Linux (crrev.com/c/6239792,
ChromeOS experiment is in progress). That is, `arePreferencesSynced` can
be true with `isSyncActive` false.
Meanwhile, users cannot toggle devtools settings sync if either
`isSyncActive` or `arePreferencesSynced` is false. Since the
`isSyncActive` condition is redundant on applicable platforms, we will
default `isSyncActive` to true. Setting sync toggle-ability should then
only depend on `arePreferencesSynced`.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bool is_signed_in = sync_info.FindBool("accountEmail").has_value() &&
This line is important for logging. Will this remain true if and only if the user is signed in to Chrome?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bool is_signed_in = sync_info.FindBool("accountEmail").has_value() &&
This line is important for logging. Will this remain true if and only if the user is signed in to Chrome?
This is true iff the user **is signed in** and there's no auth error (inferred from `isSyncPaused`).
The previous assumption was stronger: the user has to **have sync enabled**. In practice, users can sign in without turning on sync.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
result.Set("isSyncActive", base::FeatureList::IsEnabled(
switches::kEnablePreferencesAccountStorage) ||
sync_service->IsSyncFeatureActive());
Note that this will return true for all the existing syncing users once the feature is enabled. This is expected maybe?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
result.Set("isSyncActive", base::FeatureList::IsEnabled(
switches::kEnablePreferencesAccountStorage) ||
sync_service->IsSyncFeatureActive());
Note that this will return true for all the existing syncing users once the feature is enabled. This is expected maybe?
That would be expected. The devtools frontend checks this value _and_ `arePreferencesSynced` to allow users toggling saving settings. This change pratically removes the check's dependency on `isSyncActive` for Win/Mac/Linux.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
result.Set("isSyncActive", base::FeatureList::IsEnabled(
switches::kEnablePreferencesAccountStorage) ||
sync_service->IsSyncFeatureActive());
Duong DacNote that this will return true for all the existing syncing users once the feature is enabled. This is expected maybe?
That would be expected. The devtools frontend checks this value _and_ `arePreferencesSynced` to allow users toggling saving settings. This change pratically removes the check's dependency on `isSyncActive` for Win/Mac/Linux.
Acknowledged, thanks for confirming.