diff options
author | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 19:04:31 +0000 |
---|---|---|
committer | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 19:04:31 +0000 |
commit | 8e6ac4b00fb9378b2cf61b83e262970de18bef2c (patch) | |
tree | a31b889cb0a623a4d265f80537dcffec6e3afd9e /chrome/browser/extensions/file_manager_util.cc | |
parent | a58247f95909cd1c0af4718457b2b3b5fdbf26eb (diff) | |
download | chromium_src-8e6ac4b00fb9378b2cf61b83e262970de18bef2c.zip chromium_src-8e6ac4b00fb9378b2cf61b83e262970de18bef2c.tar.gz chromium_src-8e6ac4b00fb9378b2cf61b83e262970de18bef2c.tar.bz2 |
More NewRunnable* -> base::Bind for chrome/browser/extensions/.
The one non-trivial thing here was removing an
apparently unused listener API in extension_accessibility_api.h.
R=aa@chromium.org
Review URL: http://codereview.chromium.org/8289017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/file_manager_util.cc')
-rw-r--r-- | chrome/browser/extensions/file_manager_util.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/file_manager_util.cc b/chrome/browser/extensions/file_manager_util.cc index a689c5b..1eb2434 100644 --- a/chrome/browser/extensions/file_manager_util.cc +++ b/chrome/browser/extensions/file_manager_util.cc @@ -3,6 +3,7 @@ // found in the LICENSE file. #include "chrome/browser/extensions/file_manager_util.h" +#include "base/bind.h" #include "base/json/json_writer.h" #include "base/logging.h" #include "base/metrics/histogram.h" @@ -232,7 +233,7 @@ void FileManagerUtil::ViewItem(const FilePath& full_path, bool enqueue) { if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) { bool result = BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, - NewRunnableFunction(&ViewItem, full_path, enqueue)); + base::Bind(&ViewItem, full_path, enqueue)); DCHECK(result); return; } @@ -273,7 +274,7 @@ void FileManagerUtil::ViewItem(const FilePath& full_path, bool enqueue) { BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, - NewRunnableFunction( + base::Bind( &browser::ShowErrorBox, static_cast<gfx::NativeWindow>(NULL), l10n_util::GetStringFUTF16( |