diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 18:41:32 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 18:41:32 +0000 |
commit | 5be94dffc6b19e0ed8397879ad60fe06e498cb3a (patch) | |
tree | 0deaf3ff22bb9d56cab3fcaf8e0a51dea050bd3d /chrome/browser/modal_html_dialog_delegate.h | |
parent | 0b5f1163a0060e848d90684a2b1c2c8269df292b (diff) | |
download | chromium_src-5be94dffc6b19e0ed8397879ad60fe06e498cb3a.zip chromium_src-5be94dffc6b19e0ed8397879ad60fe06e498cb3a.tar.gz chromium_src-5be94dffc6b19e0ed8397879ad60fe06e498cb3a.tar.bz2 |
Use a NotificationRegistrar to listen for notifications.BUG=2381
Review URL: http://codereview.chromium.org/113743
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/modal_html_dialog_delegate.h')
-rw-r--r-- | chrome/browser/modal_html_dialog_delegate.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/modal_html_dialog_delegate.h b/chrome/browser/modal_html_dialog_delegate.h index f2822e3..1865a36 100644 --- a/chrome/browser/modal_html_dialog_delegate.h +++ b/chrome/browser/modal_html_dialog_delegate.h @@ -10,7 +10,7 @@ #include "base/gfx/size.h" #include "chrome/browser/dom_ui/html_dialog_ui.h" #include "chrome/common/ipc_message.h" -#include "chrome/common/notification_observer.h" +#include "chrome/common/notification_registrar.h" // This class can only be used on the UI thread. class ModalHtmlDialogDelegate @@ -38,10 +38,7 @@ class ModalHtmlDialogDelegate virtual void OnDialogClosed(const std::string& json_retval); private: - // Invoked from the destructor or when we receive notification the web - // contents has been disconnnected. Removes the observer from the TabContents - // and NULLs out contents_. - void RemoveObserver(); + NotificationRegistrar registrar_; // The TabContents that opened the dialog. TabContents* contents_; |