| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/sync_ui_util.h" | 5 #include "chrome/browser/sync/sync_ui_util.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/i18n/number_formatting.h" | 9 #include "base/i18n/number_formatting.h" |
| 10 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 sync_ui_util::AddBoolSyncDetail(details, | 331 sync_ui_util::AddBoolSyncDetail(details, |
| 332 "Initial Sync Ended", | 332 "Initial Sync Ended", |
| 333 full_status.initial_sync_ended); | 333 full_status.initial_sync_ended); |
| 334 sync_ui_util::AddBoolSyncDetail(details, | 334 sync_ui_util::AddBoolSyncDetail(details, |
| 335 "Syncer Stuck", | 335 "Syncer Stuck", |
| 336 full_status.syncer_stuck); | 336 full_status.syncer_stuck); |
| 337 sync_ui_util::AddIntSyncDetail(details, | 337 sync_ui_util::AddIntSyncDetail(details, |
| 338 "Updates Available", | 338 "Updates Available", |
| 339 full_status.updates_available); | 339 full_status.updates_available); |
| 340 sync_ui_util::AddIntSyncDetail(details, | 340 sync_ui_util::AddIntSyncDetail(details, |
| 341 "Updates Received", | 341 "Updates Downloaded (All)", |
| 342 full_status.updates_received); | 342 full_status.updates_received); |
| 343 sync_ui_util::AddIntSyncDetail(details, |
| 344 "Updates Downloaded (Tombstones)", |
| 345 full_status.tombstone_updates_received); |
| 343 sync_ui_util::AddBoolSyncDetail(details, | 346 sync_ui_util::AddBoolSyncDetail(details, |
| 344 "Disk Full", | 347 "Disk Full", |
| 345 full_status.disk_full); | 348 full_status.disk_full); |
| 346 sync_ui_util::AddBoolSyncDetail(details, | |
| 347 "Invalid Store", | |
| 348 full_status.invalid_store); | |
| 349 sync_ui_util::AddIntSyncDetail(details, | 349 sync_ui_util::AddIntSyncDetail(details, |
| 350 "Max Consecutive Errors", | 350 "Max Consecutive Errors", |
| 351 full_status.max_consecutive_errors); | 351 full_status.max_consecutive_errors); |
| 352 | 352 |
| 353 if (service->unrecoverable_error_detected()) { | 353 if (service->unrecoverable_error_detected()) { |
| 354 strings->Set("unrecoverable_error_detected", new FundamentalValue(true)); | 354 strings->Set("unrecoverable_error_detected", new FundamentalValue(true)); |
| 355 strings->SetString("unrecoverable_error_message", | 355 strings->SetString("unrecoverable_error_message", |
| 356 service->unrecoverable_error_message()); | 356 service->unrecoverable_error_message()); |
| 357 tracked_objects::Location loc(service->unrecoverable_error_location()); | 357 tracked_objects::Location loc(service->unrecoverable_error_location()); |
| 358 std::string location_str; | 358 std::string location_str; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 396 |
| 397 DictionaryValue* val = new DictionaryValue; | 397 DictionaryValue* val = new DictionaryValue; |
| 398 val->SetString("stat_name", "Autofill Migration Time"); | 398 val->SetString("stat_name", "Autofill Migration Time"); |
| 399 val->SetString("stat_value", ConstructTime(info.autofill_migration_time)); | 399 val->SetString("stat_value", ConstructTime(info.autofill_migration_time)); |
| 400 details->Append(val); | 400 details->Append(val); |
| 401 } | 401 } |
| 402 } | 402 } |
| 403 } | 403 } |
| 404 | 404 |
| 405 } // namespace sync_ui_util | 405 } // namespace sync_ui_util |
| OLD | NEW |