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

Unified Diff: chrome/browser/dom_ui/shown_sections_handler.cc

Issue 131094: Add GetMessageHandlers to HtmlDialogUIDelegate to allow... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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/dom_ui/shown_sections_handler.h ('k') | chrome/browser/dom_ui/tips_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/shown_sections_handler.cc
===================================================================
--- chrome/browser/dom_ui/shown_sections_handler.cc (revision 19317)
+++ chrome/browser/dom_ui/shown_sections_handler.cc (working copy)
@@ -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));
}
« no previous file with comments | « chrome/browser/dom_ui/shown_sections_handler.h ('k') | chrome/browser/dom_ui/tips_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698