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 276f6ab04a21322375f3a03ea16299686889e195..74cc940b06c2472eb51c27e9b67882aab8b4a1cf 100644 |
--- a/components/sync/model/model_type_debug_info.h |
+++ b/components/sync/model/model_type_debug_info.h |
@@ -8,7 +8,6 @@ |
#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_sync_bridge.h" |
@@ -25,16 +24,16 @@ 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<ModelTypeSyncBridge>& bridge, |
const base::Callback<void(const ModelType, |
- std::unique_ptr<base::ListValue>)>& callback); |
+ std::unique_ptr<base::ListValue>)>& callback, |
+ ModelTypeSyncBridge* bridge); |
// Returns StatusCounters for the type to |callback|. |
// Used for updating data type counters in chrome://sync-internals. |
static void GetStatusCounters( |
- const base::WeakPtr<ModelTypeSyncBridge>& bridge, |
const base::Callback<void(const ModelType, const StatusCounters&)>& |
- callback); |
+ callback, |
+ ModelTypeSyncBridge* bridge); |
private: |
ModelTypeDebugInfo(); |