Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Unified Diff: components/browser_sync/profile_sync_service.cc

Issue 2475043002: [Sync] Sync client should to exponential backoff when receive partial failure (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/sync/engine/sync_status.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/profile_sync_service.cc
diff --git a/components/browser_sync/profile_sync_service.cc b/components/browser_sync/profile_sync_service.cc
index ad29ab5986023d10f4049b4f74b2b92a14e14930..fcb0fb4b02dfedb4b34fc09655108c07b9ed7538 100644
--- a/components/browser_sync/profile_sync_service.cc
+++ b/components/browser_sync/profile_sync_service.cc
@@ -1866,6 +1866,7 @@ base::Value* ProfileSyncService::GetTypeStatusMap() {
SyncBackendHost::Status detailed_status = backend_->GetDetailedStatus();
ModelTypeSet& throttled_types(detailed_status.throttled_types);
+ ModelTypeSet& backed_off_types(detailed_status.backed_off_types);
ModelTypeSet registered = GetRegisteredDataTypes();
std::unique_ptr<base::DictionaryValue> type_status_header(
new base::DictionaryValue());
@@ -1910,12 +1911,18 @@ base::Value* ProfileSyncService::GetTypeStatusMap() {
} else if (throttled_types.Has(type) && passive_types.Has(type)) {
type_status->SetString("status", "warning");
type_status->SetString("value", "Passive, Throttled");
+ } else if (backed_off_types.Has(type) && passive_types.Has(type)) {
+ type_status->SetString("status", "warning");
+ type_status->SetString("value", "Passive, Backed off");
} else if (passive_types.Has(type)) {
type_status->SetString("status", "warning");
type_status->SetString("value", "Passive");
} else if (throttled_types.Has(type)) {
type_status->SetString("status", "warning");
type_status->SetString("value", "Throttled");
+ } else if (backed_off_types.Has(type)) {
+ type_status->SetString("status", "warning");
+ type_status->SetString("value", "Backed off");
} else if (active_types.Has(type)) {
type_status->SetString("status", "ok");
type_status->SetString(
« no previous file with comments | « no previous file | components/sync/engine/sync_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698