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

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

Issue 9323015: [Sync] - In about:sync page display if the first sync after restart has taken place or not. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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/sync_ui_util.cc
diff --git a/chrome/browser/sync/sync_ui_util.cc b/chrome/browser/sync/sync_ui_util.cc
index 8cf7b78b9bfa7bd08f2b74ee37ad649245890702..2137f85dfc6e8cb0e576f53a52f041cede7808b4 100644
--- a/chrome/browser/sync/sync_ui_util.cc
+++ b/chrome/browser/sync/sync_ui_util.cc
@@ -510,6 +510,13 @@ void ConstructAboutInformation(ProfileSyncService* service,
strings->SetString("summary",
ProfileSyncService::BuildSyncStatusSummaryText(
full_status.summary));
+ if (full_status.summary == sync_api::SyncManager::Status::UNININITIALIZED) {
rlarocque 2012/02/02 22:44:13 I'm not sure this is a good idea. What is the p
lipalani1 2012/02/03 01:55:39 Answer in the previous comment. On 2012/02/02 22:4
rlarocque 2012/02/03 18:55:03 I still think this is unusual. We have plenty o
+ strings->Set("summary_explanation_needed",
+ new base::FundamentalValue(true));
+ std::string message = "A sync has not happened since restart. ";
+ message += "The following values are speculative.";
+ strings->SetString("summary_explanation_message", message);
+ }
strings->SetString("version", GetVersionString());
strings->Set("authenticated",
@@ -560,7 +567,7 @@ void ConstructAboutInformation(ProfileSyncService* service,
sync_ui_util::AddBoolSyncDetail(details, "Syncing", full_status.syncing);
sync_ui_util::AddBoolSyncDetail(details,
"Initial Sync Ended",
- full_status.initial_sync_ended);
+ full_status.sync_count > 0);
rlarocque 2012/02/02 22:44:13 That's not what initial_sync_ended used to mean.
lipalani1 2012/02/03 01:55:39 code reverted. I kind of don't like that piece of
sync_ui_util::AddIntSyncDetail(details,
"Updates Available",
full_status.updates_available);

Powered by Google App Engine
This is Rietveld 408576698