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

Unified Diff: chrome/renderer/extensions/extension_helper.cc

Issue 8550010: base::Bind() conversion for webkit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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/renderer/extensions/extension_helper.cc
diff --git a/chrome/renderer/extensions/extension_helper.cc b/chrome/renderer/extensions/extension_helper.cc
index 119590e8b3b1e42d10bab58eadc42863f4a9e0c4..810f04238e14c21b671247d8e5634ed363aeec06 100644
--- a/chrome/renderer/extensions/extension_helper.cc
+++ b/chrome/renderer/extensions/extension_helper.cc
@@ -4,6 +4,8 @@
#include "chrome/renderer/extensions/extension_helper.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/json/json_value_serializer.h"
#include "base/lazy_instance.h"
@@ -106,7 +108,8 @@ bool ExtensionHelper::InstallWebApplicationUsingDefinitionFile(
app_definition_fetcher_.reset(new ResourceFetcher(
pending_app_info_->manifest_url, render_view()->GetWebView()->mainFrame(),
WebURLRequest::TargetIsSubresource,
- NewCallback(this, &ExtensionHelper::DidDownloadApplicationDefinition)));
+ base::Bind(&ExtensionHelper::DidDownloadApplicationDefinition,
+ base::Unretained(this))));
return true;
}
@@ -309,8 +312,9 @@ void ExtensionHelper::DidDownloadApplicationDefinition(
static_cast<int>(i),
pending_app_info_->icons[i].width,
WebURLRequest::TargetIsFavicon,
- NewCallback(
- this, &ExtensionHelper::DidDownloadApplicationIcon))));
+ base::Bind(
+ &ExtensionHelper::DidDownloadApplicationIcon,
+ base::Unretained(this)))));
}
} else {
Send(new ExtensionHostMsg_InstallApplication(routing_id(), *app_info));

Powered by Google App Engine
This is Rietveld 408576698