summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/dom_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/dom_ui/dom_ui.cc')
-rw-r--r--chrome/browser/dom_ui/dom_ui.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/chrome/browser/dom_ui/dom_ui.cc b/chrome/browser/dom_ui/dom_ui.cc
index a96521e..98d4bf2 100644
--- a/chrome/browser/dom_ui/dom_ui.cc
+++ b/chrome/browser/dom_ui/dom_ui.cc
@@ -134,18 +134,16 @@ Profile* DOMUI::GetProfile() const {
return tab_contents()->profile();
}
-// DOMUI, protected: ----------------------------------------------------------
-
-void DOMUI::AddMessageHandler(DOMMessageHandler* handler) {
- handlers_.push_back(handler);
-}
-
RenderViewHost* DOMUI::GetRenderViewHost() const {
DCHECK(tab_contents());
return tab_contents()->render_view_host();
}
-// DOMUI, private: ------------------------------------------------------------
+// DOMUI, protected: ----------------------------------------------------------
+
+void DOMUI::AddMessageHandler(DOMMessageHandler* handler) {
+ handlers_.push_back(handler);
+}
void DOMUI::ExecuteJavascript(const std::wstring& javascript) {
GetRenderViewHost()->ExecuteJavascriptInWebFrame(std::wstring(), javascript);