diff options
author | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-27 21:51:38 +0000 |
---|---|---|
committer | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-27 21:51:38 +0000 |
commit | f33386d952654acfad4f62029ece49f0e7ecb200 (patch) | |
tree | 393228082a077af4cc68401aaa69238b6ec2e4b9 /chrome/browser/sync/profile_sync_service.h | |
parent | 1deeb72e5ad02e79b984db51233db43749a6936d (diff) | |
download | chromium_src-f33386d952654acfad4f62029ece49f0e7ecb200.zip chromium_src-f33386d952654acfad4f62029ece49f0e7ecb200.tar.gz chromium_src-f33386d952654acfad4f62029ece49f0e7ecb200.tar.bz2 |
Display per-type status in about:sync
This change merges the per-datatype throttling status, per-datatype
unrecoverable error status and the routing info into a single table on
about:sync's about tab.
In the future, we may be able to expand on this to provide even more
detailed information, such as the current model association status.
BUG=134698
TEST=
Review URL: https://chromiumcodereview.appspot.com/10657033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144572 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/profile_sync_service.h')
-rw-r--r-- | chrome/browser/sync/profile_sync_service.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h index f86ce30..b04fcd7 100644 --- a/chrome/browser/sync/profile_sync_service.h +++ b/chrome/browser/sync/profile_sync_service.h @@ -405,16 +405,21 @@ class ProfileSyncService : public browser_sync::SyncFrontend, // Used by ProfileSyncServiceHarness. May return NULL. browser_sync::BackendMigrator* GetBackendMigratorForTest(); - // Get the current routing information for all enabled model types. - // If a model type is not enabled (that is, if the syncer should not - // be trying to sync it), it is not in this map. + // TODO(sync): This is only used in tests. Can we remove it? + void GetModelSafeRoutingInfo(csync::ModelSafeRoutingInfo* out) const; + + // Returns a ListValue indicating the status of all registered types. + // + // The format is: + // [ {"name": <name>, "value": <value>, "status": <status> }, ... ] + // where <name> is a type's name, <value> is a string providing details for + // the type's status, and <status> is one of "error", "warning" or "ok" + // dpending on the type's current status. // - // TODO(akalin): This function is used by - // sync_ui_util::ConstructAboutInformation() and by some test - // classes. Figure out a different way to expose this info and - // remove this function. - void GetModelSafeRoutingInfo( - csync::ModelSafeRoutingInfo* out) const; + // This function is used by sync_ui_util.cc to help populate the about:sync + // page. It returns a ListValue rather than a DictionaryValye in part to make + // it easier to iterate over its elements when constructing that page. + Value* GetTypeStatusMap() const; // Overridden by tests. // TODO(zea): Remove these and have the dtc's call directly into the SBH. @@ -517,7 +522,8 @@ class ProfileSyncService : public browser_sync::SyncFrontend, SyncGlobalError* sync_global_error() { return sync_global_error_.get(); } - virtual const FailedDatatypesHandler& failed_datatypes_handler(); + // TODO(sync): This is only used in tests. Can we remove it? + const FailedDatatypesHandler& failed_datatypes_handler() const; browser_sync::DataTypeManager::ConfigureStatus configure_status() { return configure_status_; |