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

Unified Diff: chrome/browser/ui/webui/chromeos/keyboard_overlay_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
Index: chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc
===================================================================
--- chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc (revision 103795)
+++ chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc (working copy)
@@ -4,7 +4,8 @@
#include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
-#include "base/callback.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/memory/weak_ptr.h"
#include "base/values.h"
#include "chrome/browser/chromeos/input_method/input_method_manager.h"
@@ -273,9 +274,11 @@
void KeyboardOverlayHandler::RegisterMessages() {
DCHECK(web_ui_);
web_ui_->RegisterMessageCallback("getInputMethodId",
- NewCallback(this, &KeyboardOverlayHandler::GetInputMethodId));
+ base::Bind(&KeyboardOverlayHandler::GetInputMethodId,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback("getLabelMap",
- NewCallback(this, &KeyboardOverlayHandler::GetLabelMap));
+ base::Bind(&KeyboardOverlayHandler::GetLabelMap,
+ base::Unretained(this)));
}
void KeyboardOverlayHandler::GetInputMethodId(const ListValue* args) {

Powered by Google App Engine
This is Rietveld 408576698