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

Unified Diff: chrome/browser/sync/sync_ui_util.cc

Issue 6375007: [Sync] Refactored ProfileSyncService and remove its backend() function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 9 years, 11 months 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 | « chrome/browser/sync/profile_sync_test_util.h ('k') | chrome/browser/sync/test_profile_sync_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_ui_util.cc
diff --git a/chrome/browser/sync/sync_ui_util.cc b/chrome/browser/sync/sync_ui_util.cc
index b4eb6f1f6f6609be923416c309ce47afc2e13b42..cd25abb1b288bc18402dbe376f3a843cc8d165fd 100644
--- a/chrome/browser/sync/sync_ui_util.cc
+++ b/chrome/browser/sync/sync_ui_util.cc
@@ -360,13 +360,9 @@ void ConstructAboutInformation(ProfileSyncService* service,
strings->SetString("unrecoverable_error_location", location_str);
} else if (!service->sync_initialized()) {
strings->SetString("summary", "Sync not yet initialized");
- } else if (service->backend() == NULL) {
- strings->SetString("summary",
- "Unrecoverable error detected. Backend is null when it shouldnt be");
- NOTREACHED();
} else {
browser_sync::ModelSafeRoutingInfo routes;
- service->backend()->GetModelSafeRoutingInfo(&routes);
+ service->GetModelSafeRoutingInfo(&routes);
ListValue* routing_info = new ListValue();
strings->Set("routing_info", routing_info);
browser_sync::ModelSafeRoutingInfo::const_iterator it = routes.begin();
@@ -379,10 +375,10 @@ void ConstructAboutInformation(ProfileSyncService* service,
sync_ui_util::AddBoolSyncDetail(details,
"Autofill Migrated",
- service->backend()->GetAutofillMigrationState() ==
+ service->GetAutofillMigrationState() ==
syncable::MIGRATED);
syncable::AutofillMigrationDebugInfo info =
- service->backend()->GetAutofillMigrationDebugInfo();
+ service->GetAutofillMigrationDebugInfo();
sync_ui_util::AddIntSyncDetail(details,
"Bookmarks created during migration",
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.h ('k') | chrome/browser/sync/test_profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698