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

Unified Diff: chrome/browser/repost_form_warning_controller.h

Issue 1530032: Ensure proper teardown of repost form warning objects. (Closed)
Patch Set: Remove unnecessary code from RepostFormWarningGtk. Created 10 years, 8 months 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/gtk/repost_form_warning_gtk.cc ('k') | chrome/browser/repost_form_warning_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/repost_form_warning_controller.h
diff --git a/chrome/browser/repost_form_warning_controller.h b/chrome/browser/repost_form_warning_controller.h
index 2b2c0a81042b0b7414b58b06d6d0e0010aac0955..ce22d7becb169a29d2f7361ab2a803038376af7a 100644
--- a/chrome/browser/repost_form_warning_controller.h
+++ b/chrome/browser/repost_form_warning_controller.h
@@ -13,11 +13,11 @@ class TabContents;
// This class is used to continue or cancel a pending reload when the
// repost form warning is shown. It is owned by the platform-dependent
-// |RepostFormWarning{Gtk,Mac,View}| classes and deletes itself after closing
-// the dialog.
+// |RepostFormWarning{Gtk,Mac,View}| classes.
class RepostFormWarningController : public NotificationObserver {
public:
explicit RepostFormWarningController(TabContents* tab_contents);
+ virtual ~RepostFormWarningController();
// Show the warning dialog.
void Show(ConstrainedWindowDelegate* window_delegate);
@@ -29,8 +29,6 @@ class RepostFormWarningController : public NotificationObserver {
void Continue();
private:
- virtual ~RepostFormWarningController();
-
// NotificationObserver implementation.
// Watch for a new load or a closed tab and dismiss the dialog if they occur.
void Observe(NotificationType type,
« no previous file with comments | « chrome/browser/gtk/repost_form_warning_gtk.cc ('k') | chrome/browser/repost_form_warning_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698