diff options
Diffstat (limited to 'chrome/browser/dom_ui/shown_sections_handler.cc')
-rw-r--r-- | chrome/browser/dom_ui/shown_sections_handler.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/dom_ui/shown_sections_handler.cc b/chrome/browser/dom_ui/shown_sections_handler.cc index 22597cb..353dae9 100644 --- a/chrome/browser/dom_ui/shown_sections_handler.cc +++ b/chrome/browser/dom_ui/shown_sections_handler.cc @@ -9,12 +9,10 @@ #include "chrome/browser/profile.h" #include "chrome/common/pref_names.h" -ShownSectionsHandler::ShownSectionsHandler(DOMUI* dom_ui) - : DOMMessageHandler(dom_ui), - dom_ui_(dom_ui) { - dom_ui->RegisterMessageCallback("getShownSections", +void ShownSectionsHandler::RegisterMessages() { + dom_ui_->RegisterMessageCallback("getShownSections", NewCallback(this, &ShownSectionsHandler::HandleGetShownSections)); - dom_ui->RegisterMessageCallback("setShownSections", + dom_ui_->RegisterMessageCallback("setShownSections", NewCallback(this, &ShownSectionsHandler::HandleSetShownSections)); } |