summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/sync/profile_sync_service_password_unittest.cc7
-rw-r--r--chrome/browser/ui/auto_login_prompter.cc8
-rw-r--r--chrome/service/cloud_print/cloud_print_proxy.cc3
3 files changed, 11 insertions, 7 deletions
diff --git a/chrome/browser/sync/profile_sync_service_password_unittest.cc b/chrome/browser/sync/profile_sync_service_password_unittest.cc
index 50dfed69..bf85409 100644
--- a/chrome/browser/sync/profile_sync_service_password_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_password_unittest.cc
@@ -6,6 +6,7 @@
#include "testing/gtest/include/gtest/gtest.h"
+#include "base/bind.h"
#include "base/location.h"
#include "base/synchronization/waitable_event.h"
#include "base/task.h"
@@ -187,9 +188,9 @@ class ProfileSyncServicePasswordTest : public AbstractProfileSyncServiceTest {
void FlushLastDBTask() {
base::WaitableEvent done(false, false);
- BrowserThread::PostTask(BrowserThread::DB, FROM_HERE,
- NewRunnableFunction(&ProfileSyncServicePasswordTest::SignalEvent,
- &done));
+ BrowserThread::PostTask(
+ BrowserThread::DB, FROM_HERE,
+ base::Bind(&ProfileSyncServicePasswordTest::SignalEvent, &done));
done.TimedWait(base::TimeDelta::FromMilliseconds(
TestTimeouts::action_timeout_ms()));
}
diff --git a/chrome/browser/ui/auto_login_prompter.cc b/chrome/browser/ui/auto_login_prompter.cc
index d031587..132c918 100644
--- a/chrome/browser/ui/auto_login_prompter.cc
+++ b/chrome/browser/ui/auto_login_prompter.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/auto_login_prompter.h"
+#include "base/bind.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -271,9 +272,10 @@ void AutoLoginPrompter::ShowInfoBarIfPossible(net::URLRequest* request,
if (realm != "com.google")
return;
- BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(&AutoLoginPrompter::ShowInfoBarUIThread, account,
- args, child_id, route_id));
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
+ base::Bind(&AutoLoginPrompter::ShowInfoBarUIThread, account, args,
+ child_id, route_id));
}
// static
diff --git a/chrome/service/cloud_print/cloud_print_proxy.cc b/chrome/service/cloud_print/cloud_print_proxy.cc
index a5d0be6..2e22743 100644
--- a/chrome/service/cloud_print/cloud_print_proxy.cc
+++ b/chrome/service/cloud_print/cloud_print_proxy.cc
@@ -4,6 +4,7 @@
#include "chrome/service/cloud_print/cloud_print_proxy.h"
+#include "base/bind.h"
#include "base/command_line.h"
#include "base/path_service.h"
#include "base/process_util.h"
@@ -221,7 +222,7 @@ void CloudPrintProxy::OnAuthenticationFailed() {
// expired (unless error dialogs are disabled).
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kNoErrorDialogs))
g_service_process->io_thread()->message_loop_proxy()->PostTask(
- FROM_HERE, NewRunnableFunction(&ShowTokenExpiredNotificationInBrowser));
+ FROM_HERE, base::Bind(&ShowTokenExpiredNotificationInBrowser));
}
void CloudPrintProxy::OnPrintSystemUnavailable() {