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

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

Issue 9702083: sync: Count and report reflected updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests Created 8 years, 9 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
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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 sync_ui_util::AddIntSyncDetail(details, 578 sync_ui_util::AddIntSyncDetail(details,
579 "Updates Available", 579 "Updates Available",
580 full_status.updates_available); 580 full_status.updates_available);
581 sync_ui_util::AddIntSyncDetail(details, 581 sync_ui_util::AddIntSyncDetail(details,
582 "Updates Downloaded (All)", 582 "Updates Downloaded (All)",
583 full_status.updates_received); 583 full_status.updates_received);
584 sync_ui_util::AddIntSyncDetail(details, 584 sync_ui_util::AddIntSyncDetail(details,
585 "Updates Downloaded (Tombstones)", 585 "Updates Downloaded (Tombstones)",
586 full_status.tombstone_updates_received); 586 full_status.tombstone_updates_received);
587 sync_ui_util::AddIntSyncDetail(details, 587 sync_ui_util::AddIntSyncDetail(details,
588 "Updates Downloaded (Echoes)",
589 full_status.echo_updates_received);
590 sync_ui_util::AddIntSyncDetail(details,
588 "Empty GetUpdates", 591 "Empty GetUpdates",
589 full_status.empty_get_updates); 592 full_status.empty_get_updates);
590 sync_ui_util::AddIntSyncDetail(details, 593 sync_ui_util::AddIntSyncDetail(details,
591 "Nonempty GetUpdates", 594 "Nonempty GetUpdates",
592 full_status.nonempty_get_updates); 595 full_status.nonempty_get_updates);
593 sync_ui_util::AddIntSyncDetail(details, 596 sync_ui_util::AddIntSyncDetail(details,
594 "Sync Cycles with Successful Commits", 597 "Sync Cycles with Successful Commits",
595 full_status.sync_cycles_with_commits); 598 full_status.sync_cycles_with_commits);
596 sync_ui_util::AddIntSyncDetail(details, 599 sync_ui_util::AddIntSyncDetail(details,
597 "Sync Cycles without Successful Commits", 600 "Sync Cycles without Successful Commits",
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 } 729 }
727 } else { 730 } else {
728 version_modifier = " " + version_modifier; 731 version_modifier = " " + version_modifier;
729 } 732 }
730 return chrome_version.Name() + " " + chrome_version.OSType() + " " + 733 return chrome_version.Name() + " " + chrome_version.OSType() + " " +
731 chrome_version.Version() + " (" + chrome_version.LastChange() + ")" + 734 chrome_version.Version() + " (" + chrome_version.LastChange() + ")" +
732 version_modifier; 735 version_modifier;
733 } 736 }
734 737
735 } // namespace sync_ui_util 738 } // namespace sync_ui_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698