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

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: Update python test server 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 sync_ui_util::AddIntSyncDetail(details, 565 sync_ui_util::AddIntSyncDetail(details,
566 "Updates Available", 566 "Updates Available",
567 full_status.updates_available); 567 full_status.updates_available);
568 sync_ui_util::AddIntSyncDetail(details, 568 sync_ui_util::AddIntSyncDetail(details,
569 "Updates Downloaded (All)", 569 "Updates Downloaded (All)",
570 full_status.updates_received); 570 full_status.updates_received);
571 sync_ui_util::AddIntSyncDetail(details, 571 sync_ui_util::AddIntSyncDetail(details,
572 "Updates Downloaded (Tombstones)", 572 "Updates Downloaded (Tombstones)",
573 full_status.tombstone_updates_received); 573 full_status.tombstone_updates_received);
574 sync_ui_util::AddIntSyncDetail(details, 574 sync_ui_util::AddIntSyncDetail(details,
575 "Updates Downloaded (Reflections)",
576 full_status.reflected_updates_received);
577 sync_ui_util::AddIntSyncDetail(details,
575 "Empty GetUpdates", 578 "Empty GetUpdates",
576 full_status.empty_get_updates); 579 full_status.empty_get_updates);
577 sync_ui_util::AddIntSyncDetail(details, 580 sync_ui_util::AddIntSyncDetail(details,
578 "Nonempty GetUpdates", 581 "Nonempty GetUpdates",
579 full_status.nonempty_get_updates); 582 full_status.nonempty_get_updates);
580 sync_ui_util::AddIntSyncDetail(details, 583 sync_ui_util::AddIntSyncDetail(details,
581 "Sync Cycles with Successful Commits", 584 "Sync Cycles with Successful Commits",
582 full_status.sync_cycles_with_commits); 585 full_status.sync_cycles_with_commits);
583 sync_ui_util::AddIntSyncDetail(details, 586 sync_ui_util::AddIntSyncDetail(details,
584 "Sync Cycles without Successful Commits", 587 "Sync Cycles without Successful Commits",
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 } 716 }
714 } else { 717 } else {
715 version_modifier = " " + version_modifier; 718 version_modifier = " " + version_modifier;
716 } 719 }
717 return chrome_version.Name() + " " + chrome_version.OSType() + " " + 720 return chrome_version.Name() + " " + chrome_version.OSType() + " " +
718 chrome_version.Version() + " (" + chrome_version.LastChange() + ")" + 721 chrome_version.Version() + " (" + chrome_version.LastChange() + ")" +
719 version_modifier; 722 version_modifier;
720 } 723 }
721 724
722 } // namespace sync_ui_util 725 } // namespace sync_ui_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698