| Index: chrome/browser/browsing_data_local_storage_helper_unittest.cc
|
| diff --git a/chrome/browser/browsing_data_local_storage_helper_unittest.cc b/chrome/browser/browsing_data_local_storage_helper_unittest.cc
|
| index 37c3555996e1f34f9b25a04b4afcc527ec8ed78f..8f3a9c66df9a27b913c576811fff1429b0a6e69d 100644
|
| --- a/chrome/browser/browsing_data_local_storage_helper_unittest.cc
|
| +++ b/chrome/browser/browsing_data_local_storage_helper_unittest.cc
|
| @@ -8,9 +8,7 @@
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| namespace {
|
| -class TestCompletionCallback
|
| - : public CallbackRunner<Tuple1<const std::vector<
|
| - BrowsingDataLocalStorageHelper::LocalStorageInfo>& > > {
|
| +class TestCompletionCallback {
|
| public:
|
| TestCompletionCallback()
|
| : have_result_(false) {
|
| @@ -23,11 +21,10 @@ class TestCompletionCallback
|
| return result_;
|
| }
|
|
|
| - virtual void RunWithParams(
|
| - const Tuple1<const std::vector<
|
| - BrowsingDataLocalStorageHelper::LocalStorageInfo>& >& params) {
|
| + void callback(const std::vector<
|
| + BrowsingDataLocalStorageHelper::LocalStorageInfo>& info) {
|
| have_result_ = true;
|
| - result_ = params.a;
|
| + result_ = info;
|
| }
|
|
|
| private:
|
| @@ -54,7 +51,8 @@ TEST(CannedBrowsingDataLocalStorageTest, AddLocalStorage) {
|
| helper->AddLocalStorage(origin2);
|
|
|
| TestCompletionCallback callback;
|
| - helper->StartFetching(&callback);
|
| + helper->StartFetching(
|
| + NewCallback(&callback, &TestCompletionCallback::callback));
|
| ASSERT_TRUE(callback.have_result());
|
|
|
| std::vector<BrowsingDataLocalStorageHelper::LocalStorageInfo> result =
|
| @@ -78,7 +76,8 @@ TEST(CannedBrowsingDataLocalStorageTest, Unique) {
|
| helper->AddLocalStorage(origin);
|
|
|
| TestCompletionCallback callback;
|
| - helper->StartFetching(&callback);
|
| + helper->StartFetching(
|
| + NewCallback(&callback, &TestCompletionCallback::callback));
|
| ASSERT_TRUE(callback.have_result());
|
|
|
| std::vector<BrowsingDataLocalStorageHelper::LocalStorageInfo> result =
|
|
|