Index: chrome/browser/android/data_usage/data_use_tab_model_unittest.cc |
diff --git a/chrome/browser/android/data_usage/data_use_tab_model_unittest.cc b/chrome/browser/android/data_usage/data_use_tab_model_unittest.cc |
index a3c435cdc909f0a0aaed82ba72d3c47d6d169837..3ae808e6b8ad4b3194df41044c649c918d8afecf 100644 |
--- a/chrome/browser/android/data_usage/data_use_tab_model_unittest.cc |
+++ b/chrome/browser/android/data_usage/data_use_tab_model_unittest.cc |
@@ -9,6 +9,8 @@ |
#include <memory> |
#include <string> |
+#include "base/bind.h" |
+#include "base/bind_helpers.h" |
#include "base/macros.h" |
#include "base/memory/weak_ptr.h" |
#include "base/message_loop/message_loop.h" |
@@ -115,9 +117,12 @@ class DataUseTabModelTest : public testing::Test { |
protected: |
void SetUp() override { |
base::RunLoop().RunUntilIdle(); |
- data_use_tab_model_.reset(new DataUseTabModel()); |
- data_use_tab_model_->InitOnUIThread( |
- external_data_use_observer_bridge_.get()); |
+ data_use_tab_model_.reset(new DataUseTabModel( |
+ base::Bind(&ExternalDataUseObserverBridge::FetchMatchingRules, |
+ base::Unretained(external_data_use_observer_bridge_.get())), |
+ base::Bind( |
+ &ExternalDataUseObserverBridge::ShouldRegisterAsDataUseObserver, |
+ base::Unretained(external_data_use_observer_bridge_.get())))); |
tick_clock_ = new base::SimpleTestTickClock(); |