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

Unified Diff: chrome/browser/sync/about_sync_util.cc

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/about_sync_util.cc
diff --git a/chrome/browser/sync/about_sync_util.cc b/chrome/browser/sync/about_sync_util.cc
index 1b9d149658435e9815bf829bc252bf604bcbe762..bdf141137a8d428f01e6becda44b11b1f453a951 100644
--- a/chrome/browser/sync/about_sync_util.cc
+++ b/chrome/browser/sync/about_sync_util.cc
@@ -335,8 +335,11 @@ scoped_ptr<DictionaryValue> ConstructAboutInformation(
}
if (snapshot.is_initialized()) {
- session_source.SetValue(
- syncer::GetUpdatesSourceString(snapshot.source().updates_source));
+ if (snapshot.legacy_updates_source() !=
+ sync_pb::GetUpdatesCallerInfo::UNKNOWN) {
+ session_source.SetValue(
+ syncer::GetUpdatesSourceString(snapshot.legacy_updates_source()));
+ }
get_key_result.SetValue(
GetSyncerErrorString(
snapshot.model_neutral_state().last_get_key_result));

Powered by Google App Engine
This is Rietveld 408576698