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

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

Issue 6269015: Add facility to fix about: and file: links from chrome:// pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more automatic Created 9 years, 11 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 | « no previous file | chrome/browser/dom_ui/generic_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/dom_ui.cc
diff --git a/chrome/browser/dom_ui/dom_ui.cc b/chrome/browser/dom_ui/dom_ui.cc
index aeb1da5b6400aca0b550f85d57bc45ee1230e367..a96521e9be9070b101d0ea2b2abf669d50102051 100644
--- a/chrome/browser/dom_ui/dom_ui.cc
+++ b/chrome/browser/dom_ui/dom_ui.cc
@@ -10,6 +10,7 @@
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
+#include "chrome/browser/dom_ui/generic_handler.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#include "chrome/browser/tab_contents/tab_contents.h"
@@ -45,6 +46,8 @@ DOMUI::DOMUI(TabContents* contents)
link_transition_type_(PageTransition::LINK),
bindings_(BindingsPolicy::DOM_UI),
tab_contents_(contents) {
+ GenericHandler* handler = new GenericHandler();
+ AddMessageHandler(handler->Attach(this));
}
DOMUI::~DOMUI() {
« no previous file with comments | « no previous file | chrome/browser/dom_ui/generic_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698