summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc
diff options
context:
space:
mode:
authorachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 01:10:57 +0000
committerachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 01:10:57 +0000
commite78385644c5092a3eef60c9d61ce7e4ab97a6af6 (patch)
tree7003fe3547bb5869a7a9b535b19bdd92ee8501ee /chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc
parent168d442e09084d0a14673149a0014d9d9c0220d5 (diff)
downloadchromium_src-e78385644c5092a3eef60c9d61ce7e4ab97a6af6.zip
chromium_src-e78385644c5092a3eef60c9d61ce7e4ab97a6af6.tar.gz
chromium_src-e78385644c5092a3eef60c9d61ce7e4ab97a6af6.tar.bz2
Remove NewRunnableFunction in imageburner.
BUG=chromium-os:22024 TEST=compiles, tests run. Review URL: http://codereview.chromium.org/8667001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc')
-rw-r--r--chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc
index 2de3065..660f7cd 100644
--- a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc
@@ -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 @@ const char kMoreInfoLink[] =
namespace {
-ChromeWebUIDataSource *CreateImageburnerUIHTMLSource() {
- ChromeWebUIDataSource *source =
+ChromeWebUIDataSource* CreateImageburnerUIHTMLSource() {
+ ChromeWebUIDataSource* source =
new ChromeWebUIDataSource(chrome::kChromeUIImageBurnerHost);
source->AddLocalizedString("headerTitle", IDS_IMAGEBURN_HEADER_TITLE);
@@ -359,7 +361,7 @@ void WebUIHandler::HandleBurnImage(const ListValue* args) {
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 @@ void WebUIHandler::OnImageDirCreated(bool success) {
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));
}
void WebUIHandler::ImageDirCreatedOnUIThread(bool success) {