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

Unified Diff: chrome/browser/ui/webui/options/chromeos/about_page_handler.cc

Issue 8113025: base::Bind: More converts, mostly in WebUI. (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/options/chromeos/about_page_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/about_page_handler.cc b/chrome/browser/ui/webui/options/chromeos/about_page_handler.cc
index f1bba1f6b37efbe577103f62a86dc766dc37630f..93551738d5110ae7f9687bde2e7e5900fc552418 100644
--- a/chrome/browser/ui/webui/options/chromeos/about_page_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/about_page_handler.cc
@@ -7,7 +7,8 @@
#include <vector>
#include "base/basictypes.h"
-#include "base/callback.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/i18n/time_formatting.h"
#include "base/string16.h"
@@ -247,10 +248,12 @@ void AboutPageHandler::RegisterMessages() {
void AboutPageHandler::PageReady(const ListValue* args) {
// Version information is loaded from a callback
loader_.GetVersion(&consumer_,
- NewCallback(this, &AboutPageHandler::OnOSVersion),
+ base::Bind(&AboutPageHandler::OnOSVersion,
+ base::Unretained(this)),
VersionLoader::VERSION_FULL);
loader_.GetFirmware(&consumer_,
- NewCallback(this, &AboutPageHandler::OnOSFirmware));
+ base::Bind(&AboutPageHandler::OnOSFirmware,
+ base::Unretained(this)));
UpdateLibrary* update_library =
CrosLibrary::Get()->GetUpdateLibrary();

Powered by Google App Engine
This is Rietveld 408576698