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

Unified Diff: components/sync/driver/about_sync_util.cc

Issue 2619763002: Expose local sync mode status in the chrome://sync-internals page. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | components/sync/engine/sync_status.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/about_sync_util.cc
diff --git a/components/sync/driver/about_sync_util.cc b/components/sync/driver/about_sync_util.cc
index 3a88b59cb91ae74e8578306a830c2821d52dbe04..c6c6a8bdddc14f3a22249f9737c8887b94fe5393 100644
--- a/components/sync/driver/about_sync_util.cc
+++ b/components/sync/driver/about_sync_util.cc
@@ -283,6 +283,9 @@ std::unique_ptr<base::DictionaryValue> ConstructAboutInformation(
StringSyncStat backend_initialization(section_local,
"Sync Backend Initialization");
BoolSyncStat is_syncing(section_local, "Syncing");
+ BoolSyncStat is_local_sync_enabled(section_local,
+ "Local sync backend enabled");
+ StringSyncStat local_backend_path(section_local, "Local backend path");
base::ListValue* section_network = AddSection(stats_list, "Network");
BoolSyncStat is_throttled(section_network, "Throttled");
@@ -388,6 +391,10 @@ std::unique_ptr<base::DictionaryValue> ConstructAboutInformation(
last_synced.SetValue(service->GetLastSyncedTimeString());
is_setup_complete.SetValue(service->IsFirstSetupComplete());
+ is_local_sync_enabled.SetValue(service->IsLocalSyncEnabled());
+ if (service->IsLocalSyncEnabled() && is_status_valid) {
+ local_backend_path.SetValue(full_status.local_sync_folder);
+ }
backend_initialization.SetValue(
service->GetEngineInitializationStateString());
if (is_status_valid) {
« no previous file with comments | « no previous file | components/sync/engine/sync_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698