| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/sync/about_sync_util.h" | 5 #include "chrome/browser/sync/about_sync_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 summary_string.SetValue(service->QuerySyncStatusSummary()); | 289 summary_string.SetValue(service->QuerySyncStatusSummary()); |
| 290 | 290 |
| 291 server_url.SetValue(service->sync_service_url().spec()); | 291 server_url.SetValue(service->sync_service_url().spec()); |
| 292 | 292 |
| 293 if (is_status_valid && !full_status.sync_id.empty()) | 293 if (is_status_valid && !full_status.sync_id.empty()) |
| 294 sync_id.SetValue(full_status.sync_id); | 294 sync_id.SetValue(full_status.sync_id); |
| 295 if (is_status_valid && !full_status.invalidator_client_id.empty()) | 295 if (is_status_valid && !full_status.invalidator_client_id.empty()) |
| 296 invalidator_id.SetValue(full_status.invalidator_client_id); | 296 invalidator_id.SetValue(full_status.invalidator_client_id); |
| 297 if (service->signin()) | 297 if (service->signin()) |
| 298 username.SetValue(service->signin()->GetAuthenticatedUsername()); | 298 username.SetValue(service->signin()->GetAuthenticatedUsername()); |
| 299 is_token_available.SetValue(service->IsSyncTokenAvailable()); | 299 is_token_available.SetValue(service->IsOAuthRefreshTokenAvailable()); |
| 300 | 300 |
| 301 last_synced.SetValue(service->GetLastSyncedTimeString()); | 301 last_synced.SetValue(service->GetLastSyncedTimeString()); |
| 302 is_setup_complete.SetValue(service->HasSyncSetupCompleted()); | 302 is_setup_complete.SetValue(service->HasSyncSetupCompleted()); |
| 303 backend_initialization.SetValue( | 303 backend_initialization.SetValue( |
| 304 service->GetBackendInitializationStateString()); | 304 service->GetBackendInitializationStateString()); |
| 305 if (is_status_valid) { | 305 if (is_status_valid) { |
| 306 is_syncing.SetValue(full_status.syncing); | 306 is_syncing.SetValue(full_status.syncing); |
| 307 retry_time.SetValue(GetTimeStr(full_status.retry_time, | 307 retry_time.SetValue(GetTimeStr(full_status.retry_time, |
| 308 "Scheduler is not in backoff or throttled")); | 308 "Scheduler is not in backoff or throttled")); |
| 309 } | 309 } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 about_info->SetString("unrecoverable_error_message", | 436 about_info->SetString("unrecoverable_error_message", |
| 437 unrecoverable_error_message); | 437 unrecoverable_error_message); |
| 438 } | 438 } |
| 439 | 439 |
| 440 about_info->Set("type_status", service->GetTypeStatusMap()); | 440 about_info->Set("type_status", service->GetTypeStatusMap()); |
| 441 | 441 |
| 442 return about_info.Pass(); | 442 return about_info.Pass(); |
| 443 } | 443 } |
| 444 | 444 |
| 445 } // namespace sync_ui_util | 445 } // namespace sync_ui_util |
| OLD | NEW |