DescriptionFix IsPrecachingAllowed() to check Sync instead of Data Saver.
Fixed PrecacheManager::IsPrecachingAllowed() to check for the ability to sync
tabs rather than to check that Data Saver is enabled. This was used only by
ChromeNetworkDelegate to determine whether to report some request metrics to
UMA. This definition of the function became out-of-date as of commit dd40ab5.
Got rid of the internal IsSyncTabsEnabled() function, and had PrecacheLauncher
call PrecacheManager::IsPrecachingAllowed() instead. This should eliminate this
class of error in the future.
BUG=309216
Committed: https://crrev.com/85f978746ea9ad414b4fc710a99e8f81d55f7a22
Cr-Commit-Position: refs/heads/master@{#335835}
Patch Set 1 : Fix IsPrecachingAllowed and remove IsSyncTabsEnabled. #Patch Set 2 : Add check for GetEncryptedDataTypes by switching to SyncService. #Patch Set 3 : Fix include paths. #
Total comments: 2
Patch Set 4 : Change IsSyncEnabledAndLoggedIn to CanSyncStart. #
Total comments: 6
Patch Set 5 : Remove explicit, add consts, remove user_prefs dep. #
Total comments: 1
Patch Set 6 : Fix encryption check. #Patch Set 7 : Use active rather than preferred, per zea@. #
Total comments: 6
Patch Set 8 : Tweaks per bengr. #Messages
Total messages: 37 (6 generated)
|