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

Unified Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 9015021: Remove DeleteTask and convert remaining users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix last Linux gotchas (upload attempt #2) Created 9 years 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
Index: chrome/browser/ui/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index 8d6dac251abb6886af4368b12a868d4ed97b84bb..8a2e78e78de1640ad5e0e5c40cd232732e349efd 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -10,6 +10,7 @@
#include <string>
#include "base/base_paths.h"
+#include "base/bind.h"
#include "base/command_line.h"
#include "base/debug/trace_event.h"
#include "base/environment.h"
@@ -21,6 +22,7 @@
#include "base/nix/xdg_util.h"
#include "base/path_service.h"
#include "base/string_util.h"
+#include "base/task.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
@@ -1578,8 +1580,8 @@ void BrowserWindowGtk::OnMainWindowDestroy(GtkWidget* widget) {
//
// We don't want to use DeleteSoon() here since it won't work on a nested pump
// (like in UI tests).
- MessageLoop::current()->PostTask(FROM_HERE,
- new DeleteTask<BrowserWindowGtk>(this));
+ MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&DeletePointer<BrowserWindowGtk>, this));
}
void BrowserWindowGtk::UnMaximize() {
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.h ('k') | chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698