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

Unified Diff: components/sync/model/model_type_debug_info.h

Issue 2458013002: [Sync] Rename ModelTypeService to ModelTypeSyncBridge. (Closed)
Patch Set: s/SetBridgeError/ErrorOnNextCall Created 4 years, 2 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: components/sync/model/model_type_debug_info.h
diff --git a/components/sync/model/model_type_debug_info.h b/components/sync/model/model_type_debug_info.h
index 437890e35f404ab348b33fa370395d028e13179f..a5d3779e907eada3d1733e337ad5d8c3e54beb8f 100644
--- a/components/sync/model/model_type_debug_info.h
+++ b/components/sync/model/model_type_debug_info.h
@@ -5,11 +5,13 @@
#ifndef COMPONENTS_SYNC_MODEL_MODEL_TYPE_DEBUG_INFO_H_
#define COMPONENTS_SYNC_MODEL_MODEL_TYPE_DEBUG_INFO_H_
+#include <memory>
+
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "base/values.h"
#include "components/sync/base/model_type.h"
-#include "components/sync/model/model_type_service.h"
+#include "components/sync/model/model_type_sync_bridge.h"
#include "components/sync/model_impl/shared_model_type_processor.h"
namespace syncer {
@@ -23,23 +25,23 @@ class ModelTypeDebugInfo {
// Returns a ListValue representing all nodes for the type to |callback|.
// Used for populating nodes in Sync Node Browser of chrome://sync-internals.
static void GetAllNodes(
- const base::WeakPtr<ModelTypeService>& service,
+ const base::WeakPtr<ModelTypeSyncBridge>& bridge,
const base::Callback<void(const ModelType,
std::unique_ptr<base::ListValue>)>& callback);
// Returns StatusCounters for the type to |callback|.
// Used for updating data type counters in chrome://sync-internals.
static void GetStatusCounters(
- const base::WeakPtr<ModelTypeService>& service,
+ const base::WeakPtr<ModelTypeSyncBridge>& bridge,
const base::Callback<void(const ModelType, const StatusCounters&)>&
callback);
private:
ModelTypeDebugInfo();
- // This is callback function for ModelTypeService::GetAllData. This function
- // will merge real data from |batch| with metadata extracted from the
- // |processor|, then pass it all to |callback|.
+ // This is callback function for ModelTypeSyncBridge::GetAllData. This
+ // function will merge real data from |batch| with metadata extracted from
+ // the |processor|, then pass it all to |callback|.
static void MergeDataWithMetadata(
SharedModelTypeProcessor* processor,
const base::Callback<void(const ModelType,
« no previous file with comments | « components/sync/model/model_type_change_processor.cc ('k') | components/sync/model/model_type_debug_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698