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

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

Issue 10694013: Shade uninitialized about:sync fields (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix one more test error Created 8 years, 6 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
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 0f70f0b57cd819299182735d3134d1af8311d207..d8e23972d395c97779c833d0bae50e467fc19012 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -953,13 +953,16 @@ std::string ProfileSyncService::QuerySyncStatusSummary() {
}
}
-SyncBackendHost::Status ProfileSyncService::QueryDetailedSyncStatus() {
+bool ProfileSyncService::QueryDetailedSyncStatus(
+ SyncBackendHost::Status* result) {
if (backend_.get() && backend_initialized_) {
- return backend_->GetDetailedStatus();
+ *result = backend_->GetDetailedStatus();
+ return true;
} else {
SyncBackendHost::Status status;
status.sync_protocol_error = last_actionable_error_;
- return status;
+ *result = status;
+ return false;
}
}

Powered by Google App Engine
This is Rietveld 408576698