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

Unified Diff: chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc

Issue 8667001: Fix Bind usage in imageburner. (Closed) Base URL: svn://chrome-svn/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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc
===================================================================
--- chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc (revision 110982)
+++ chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc (working copy)
@@ -3,17 +3,19 @@
// found in the LICENSE file.
#include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
-#include "chrome/browser/ui/webui/chromeos/imageburner/webui_handler.h"
+#include <string>
+#include <vector>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/i18n/rtl.h"
#include "base/message_loop.h"
-#include "base/task.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/chromeos/system/statistics_provider.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/webui/chromeos/imageburner/webui_handler.h"
#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
#include "chrome/common/jstemplate_builder.h"
#include "chrome/common/time_format.h"
@@ -47,8 +49,8 @@
namespace {
-ChromeWebUIDataSource *CreateImageburnerUIHTMLSource() {
- ChromeWebUIDataSource *source =
+ChromeWebUIDataSource* CreateImageburnerUIHTMLSource() {
+ ChromeWebUIDataSource* source =
new ChromeWebUIDataSource(chrome::kChromeUIImageBurnerHost);
source->AddLocalizedString("headerTitle", IDS_IMAGEBURN_HEADER_TITLE);
@@ -359,7 +361,7 @@
scoped_refptr<WebUIHandlerTaskProxy> task = new WebUIHandlerTaskProxy(this);
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
- NewRunnableMethod(task.get(), &WebUIHandlerTaskProxy::CreateImageDir));
+ base::Bind(&WebUIHandlerTaskProxy::CreateImageDir, task.get()));
} else {
ImageDirCreatedOnUIThread(true);
}
@@ -376,8 +378,8 @@
scoped_refptr<WebUIHandlerTaskProxy> task = new WebUIHandlerTaskProxy(this);
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(task.get(), &WebUIHandlerTaskProxy::OnImageDirCreated,
- success));
+ base::Bind(&WebUIHandlerTaskProxy::OnImageDirCreated,
+ task.get(), success));
csilv 2011/11/23 22:42:13 nit: align parameters... (ie: align 'task.get()' w
}
void WebUIHandler::ImageDirCreatedOnUIThread(bool success) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698