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

Unified Diff: chrome/browser/ui/select_file_dialog.cc

Issue 8590012: base::Bind migrations in chrome/browser (Closed) Base URL: svn://svn.chromium.org/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 | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/tabs/hover_tab_selector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/select_file_dialog.cc
===================================================================
--- chrome/browser/ui/select_file_dialog.cc (revision 110185)
+++ chrome/browser/ui/select_file_dialog.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/select_file_dialog.h"
+#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "chrome/browser/browser_process.h"
@@ -69,11 +70,9 @@
// Inform the listener that no file was selected.
// Post a task rather than calling FileSelectionCanceled directly to ensure
// that the listener is called asynchronously.
- MessageLoop::current()->PostTask(FROM_HERE,
- NewRunnableMethod(
- this,
- &SelectFileDialog::CancelFileSelection,
- params));
+ MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&SelectFileDialog::CancelFileSelection, this,
+ params));
return;
}
// Call the platform specific implementation of the file selection dialog.
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/tabs/hover_tab_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698