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

Unified Diff: chrome/browser/ui/webui/collected_cookies_ui_delegate.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/chromeos/sim_unlock_ui.cc ('k') | chrome/browser/ui/webui/constrained_html_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/collected_cookies_ui_delegate.cc
===================================================================
--- chrome/browser/ui/webui/collected_cookies_ui_delegate.cc (revision 103795)
+++ chrome/browser/ui/webui/collected_cookies_ui_delegate.cc (working copy)
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/webui/collected_cookies_ui_delegate.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/message_loop.h"
#include "base/string_util.h"
#include "base/values.h"
@@ -211,13 +213,17 @@
void CollectedCookiesUIDelegate::RegisterMessages() {
web_ui_->RegisterMessageCallback("BindCookiesTreeModel",
- NewCallback(this, &CollectedCookiesUIDelegate::BindCookiesTreeModel));
+ base::Bind(&CollectedCookiesUIDelegate::BindCookiesTreeModel,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback("Block",
- NewCallback(this, &CollectedCookiesUIDelegate::Block));
+ base::Bind(&CollectedCookiesUIDelegate::Block,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback("Allow",
- NewCallback(this, &CollectedCookiesUIDelegate::Allow));
+ base::Bind(&CollectedCookiesUIDelegate::Allow,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback("AllowThisSession",
- NewCallback(this, &CollectedCookiesUIDelegate::AllowThisSession));
+ base::Bind(&CollectedCookiesUIDelegate::AllowThisSession,
+ base::Unretained(this)));
allowed_cookies_adapter_.Init(web_ui_);
blocked_cookies_adapter_.Init(web_ui_);
« no previous file with comments | « chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc ('k') | chrome/browser/ui/webui/constrained_html_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698