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

Unified Diff: chrome/browser/chromeos/version_loader.h

Issue 8113025: base::Bind: More converts, mostly in WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. 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/chromeos/system/syslogs_provider.cc ('k') | chrome/browser/chromeos/version_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/version_loader.h
diff --git a/chrome/browser/chromeos/version_loader.h b/chrome/browser/chromeos/version_loader.h
index 1560b18e0897294f08c72816af2c0b773e9872b1..e0352754fe02b71cd36d30bd65e92a7933eef0dd 100644
--- a/chrome/browser/chromeos/version_loader.h
+++ b/chrome/browser/chromeos/version_loader.h
@@ -8,7 +8,7 @@
#include <string>
-#include "base/callback_old.h"
+#include "base/callback.h"
#include "base/gtest_prod_util.h"
#include "content/browser/cancelable_request.h"
@@ -43,21 +43,21 @@ class VersionLoader : public CancelableRequestProvider {
};
// Signature
- typedef Callback2<Handle, std::string>::Type GetVersionCallback;
+ typedef base::Callback<void(Handle, std::string)> GetVersionCallback;
typedef CancelableRequest<GetVersionCallback> GetVersionRequest;
- typedef Callback2<Handle, std::string>::Type GetFirmwareCallback;
+ typedef base::Callback<void(Handle, std::string)> GetFirmwareCallback;
typedef CancelableRequest<GetFirmwareCallback> GetFirmwareRequest;
// Asynchronously requests the version.
// If |full_version| is true version string with extra info is extracted,
// otherwise it's in short format x.x.xx.x.
Handle GetVersion(CancelableRequestConsumerBase* consumer,
- GetVersionCallback* callback,
+ const GetVersionCallback& callback,
VersionFormat format);
Handle GetFirmware(CancelableRequestConsumerBase* consumer,
- GetFirmwareCallback* callback);
+ const GetFirmwareCallback& callback);
// Parse the version information as a Chrome platfrom, not Chrome OS
// TODO(rkc): Change this and everywhere it is used once we switch Chrome OS
« no previous file with comments | « chrome/browser/chromeos/system/syslogs_provider.cc ('k') | chrome/browser/chromeos/version_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698