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

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

Issue 8122004: [web-ui] Migrate callbacks 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
Index: chrome/browser/ui/webui/sessions_ui.cc
===================================================================
--- chrome/browser/ui/webui/sessions_ui.cc (revision 103728)
+++ chrome/browser/ui/webui/sessions_ui.cc (working copy)
@@ -7,6 +7,8 @@
#include <algorithm>
#include <vector>
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/glue/session_model_associator.h"
#include "chrome/browser/sync/glue/synced_session.h"
@@ -111,7 +113,8 @@
void SessionsDOMHandler::RegisterMessages() {
web_ui_->RegisterMessageCallback("requestSessionList",
- NewCallback(this, &SessionsDOMHandler::HandleRequestSessions));
+ base::Bind(&SessionsDOMHandler::HandleRequestSessions,
+ base::Unretained(this)));
}
void SessionsDOMHandler::HandleRequestSessions(const ListValue* args) {

Powered by Google App Engine
This is Rietveld 408576698