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

Unified Diff: chrome/browser/ui/webui/history2_ui.cc

Issue 8113018: [web-ui] Migrate RegisterMessageCallback usage to base::bind(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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/ui/webui/gpu_internals_ui.cc ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/history2_ui.cc
===================================================================
--- chrome/browser/ui/webui/history2_ui.cc (revision 103795)
+++ chrome/browser/ui/webui/history2_ui.cc (working copy)
@@ -6,7 +6,9 @@
#include <set>
-#include "base/callback.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
+#include "base/callback_old.h"
#include "base/i18n/time_formatting.h"
#include "base/memory/singleton.h"
#include "base/message_loop.h"
@@ -112,13 +114,17 @@
void BrowsingHistoryHandler2::RegisterMessages() {
web_ui_->RegisterMessageCallback("getHistory",
- NewCallback(this, &BrowsingHistoryHandler2::HandleGetHistory));
+ base::Bind(&BrowsingHistoryHandler2::HandleGetHistory,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback("searchHistory",
- NewCallback(this, &BrowsingHistoryHandler2::HandleSearchHistory));
+ base::Bind(&BrowsingHistoryHandler2::HandleSearchHistory,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback("removeURLsOnOneDay",
- NewCallback(this, &BrowsingHistoryHandler2::HandleRemoveURLsOnOneDay));
+ base::Bind(&BrowsingHistoryHandler2::HandleRemoveURLsOnOneDay,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback("clearBrowsingData",
- NewCallback(this, &BrowsingHistoryHandler2::HandleClearBrowsingData));
+ base::Bind(&BrowsingHistoryHandler2::HandleClearBrowsingData,
+ base::Unretained(this)));
}
void BrowsingHistoryHandler2::HandleGetHistory(const ListValue* args) {
« no previous file with comments | « chrome/browser/ui/webui/gpu_internals_ui.cc ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698