summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-12 17:10:58 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-12 17:10:58 +0000
commit8075105cb6bc684ebfe613edd6a9a27384c80d7e (patch)
tree86386ce875a2fd3e08db4fd4cd9f6e9b09c096cb /chrome
parent82f4b8292a2bf50213b9ae86399303f907e930e0 (diff)
downloadchromium_src-8075105cb6bc684ebfe613edd6a9a27384c80d7e.zip
chromium_src-8075105cb6bc684ebfe613edd6a9a27384c80d7e.tar.gz
chromium_src-8075105cb6bc684ebfe613edd6a9a27384c80d7e.tar.bz2
base::Bind: Low-hanging fruit conversions of NewRunnableFunction.
BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8536037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109803 0039d316-1c4b-4281-b951-d872f2087c98
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() {