| 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/sync_ui_util.h" | 5 #include "chrome/browser/sync/sync_ui_util.h" |
| 6 | 6 |
| 7 #include "base/i18n/number_formatting.h" | 7 #include "base/i18n/number_formatting.h" |
| 8 #include "base/i18n/time_formatting.h" | 8 #include "base/i18n/time_formatting.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 full_status.notifications_received); | 629 full_status.notifications_received); |
| 630 | 630 |
| 631 sync_ui_util::AddIntSyncDetail(counters, | 631 sync_ui_util::AddIntSyncDetail(counters, |
| 632 "Cycles Without Updates", | 632 "Cycles Without Updates", |
| 633 full_status.empty_get_updates); | 633 full_status.empty_get_updates); |
| 634 sync_ui_util::AddIntSyncDetail(counters, | 634 sync_ui_util::AddIntSyncDetail(counters, |
| 635 "Cycles With Updates", | 635 "Cycles With Updates", |
| 636 full_status.nonempty_get_updates); | 636 full_status.nonempty_get_updates); |
| 637 sync_ui_util::AddIntSyncDetail(counters, | 637 sync_ui_util::AddIntSyncDetail(counters, |
| 638 "Cycles Without Commits", | 638 "Cycles Without Commits", |
| 639 full_status.sync_cycles_without_commits); |
| 640 sync_ui_util::AddIntSyncDetail(counters, |
| 641 "Cycles With Commits", |
| 639 full_status.sync_cycles_with_commits); | 642 full_status.sync_cycles_with_commits); |
| 640 sync_ui_util::AddIntSyncDetail(counters, | 643 sync_ui_util::AddIntSyncDetail(counters, |
| 641 "Cycles With Commits", | |
| 642 full_status.sync_cycles_without_commits); | |
| 643 sync_ui_util::AddIntSyncDetail(counters, | |
| 644 "Cycles Without Commits or Updates", | 644 "Cycles Without Commits or Updates", |
| 645 full_status.useful_sync_cycles); | 645 full_status.useless_sync_cycles); |
| 646 sync_ui_util::AddIntSyncDetail(counters, | 646 sync_ui_util::AddIntSyncDetail(counters, |
| 647 "Cycles With Commit or Update", | 647 "Cycles With Commit or Update", |
| 648 full_status.useless_sync_cycles); | 648 full_status.useful_sync_cycles); |
| 649 | 649 |
| 650 sync_ui_util::AddIntSyncDetail(counters, | 650 sync_ui_util::AddIntSyncDetail(counters, |
| 651 "Updates Downloaded", | 651 "Updates Downloaded", |
| 652 full_status.updates_received); | 652 full_status.updates_received); |
| 653 sync_ui_util::AddIntSyncDetail( | 653 sync_ui_util::AddIntSyncDetail( |
| 654 counters, "Tombstone Updates", | 654 counters, "Tombstone Updates", |
| 655 full_status.tombstone_updates_received); | 655 full_status.tombstone_updates_received); |
| 656 sync_ui_util::AddIntSyncDetail( | 656 sync_ui_util::AddIntSyncDetail( |
| 657 counters, "Reflected Updates", | 657 counters, "Reflected Updates", |
| 658 full_status.reflected_updates_received); | 658 full_status.reflected_updates_received); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 } | 787 } |
| 788 } else { | 788 } else { |
| 789 version_modifier = " " + version_modifier; | 789 version_modifier = " " + version_modifier; |
| 790 } | 790 } |
| 791 return chrome_version.Name() + " " + chrome_version.OSType() + " " + | 791 return chrome_version.Name() + " " + chrome_version.OSType() + " " + |
| 792 chrome_version.Version() + " (" + chrome_version.LastChange() + ")" + | 792 chrome_version.Version() + " (" + chrome_version.LastChange() + ")" + |
| 793 version_modifier; | 793 version_modifier; |
| 794 } | 794 } |
| 795 | 795 |
| 796 } // namespace sync_ui_util | 796 } // namespace sync_ui_util |
| OLD | NEW |