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

Unified Diff: chrome/browser/mock_browsing_data_local_storage_helper.cc

Issue 8393036: base::Bind: Convert BrowsingDataLocalStorageHelper::StartFetching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 9 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
« no previous file with comments | « chrome/browser/mock_browsing_data_local_storage_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/mock_browsing_data_local_storage_helper.cc
diff --git a/chrome/browser/mock_browsing_data_local_storage_helper.cc b/chrome/browser/mock_browsing_data_local_storage_helper.cc
index 9bdbda7e4bc24770520adb63b5dcaa2eda57fe92..7f223683d52afb39cf4f8f6cc2f5134b3cbdf056 100644
--- a/chrome/browser/mock_browsing_data_local_storage_helper.cc
+++ b/chrome/browser/mock_browsing_data_local_storage_helper.cc
@@ -17,12 +17,12 @@ MockBrowsingDataLocalStorageHelper::~MockBrowsingDataLocalStorageHelper() {
}
void MockBrowsingDataLocalStorageHelper::StartFetching(
- Callback1<const std::list<LocalStorageInfo>& >::Type* callback) {
- callback_.reset(callback);
+ const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback) {
+ callback_ = callback;
}
void MockBrowsingDataLocalStorageHelper::CancelNotification() {
- callback_.reset(NULL);
+ callback_.Reset();
}
void MockBrowsingDataLocalStorageHelper::DeleteLocalStorageFile(
@@ -46,8 +46,8 @@ void MockBrowsingDataLocalStorageHelper::AddLocalStorageSamples() {
}
void MockBrowsingDataLocalStorageHelper::Notify() {
- CHECK(callback_.get());
- callback_->Run(response_);
+ CHECK_EQ(false, callback_.is_null());
+ callback_.Run(response_);
}
void MockBrowsingDataLocalStorageHelper::Reset() {
« no previous file with comments | « chrome/browser/mock_browsing_data_local_storage_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698