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

Side by Side Diff: chrome/browser/sync/sync_ui_util.cc

Issue 10253020: Fix labels in chrome://sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698