summaryrefslogtreecommitdiffstats
path: root/content/browser/web_contents/web_contents_impl.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-29 04:27:58 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-29 04:27:58 +0000
commiteb2ef21c332ae0de01e236699e1a46003941897c (patch)
tree23e27458fb0f7f34e20f368a4c073d1ca489eac7 /content/browser/web_contents/web_contents_impl.cc
parentba23e67a80f782d126f59f1a33555c16f7843605 (diff)
downloadchromium_src-eb2ef21c332ae0de01e236699e1a46003941897c.zip
chromium_src-eb2ef21c332ae0de01e236699e1a46003941897c.tar.gz
chromium_src-eb2ef21c332ae0de01e236699e1a46003941897c.tar.bz2
Move generic_handler.* to content\browser\webui since it's needed by all webui pages.
BUG=169170 Review URL: https://codereview.chromium.org/12087040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179290 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/web_contents/web_contents_impl.cc')
-rw-r--r--content/browser/web_contents/web_contents_impl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index bb1238f..8b1f8e9 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -37,6 +37,7 @@
#include "content/browser/web_contents/interstitial_page_impl.h"
#include "content/browser/web_contents/navigation_entry_impl.h"
#include "content/browser/web_contents/web_contents_view_guest.h"
+#include "content/browser/webui/generic_handler.h"
#include "content/browser/webui/web_ui_controller_factory_registry.h"
#include "content/browser/webui/web_ui_impl.h"
#include "content/common/browser_plugin_messages.h"
@@ -860,6 +861,7 @@ WebUI* WebContentsImpl::CreateWebUI(const GURL& url) {
WebUIController* controller = WebUIControllerFactoryRegistry::GetInstance()->
CreateWebUIControllerForURL(web_ui, url);
if (controller) {
+ web_ui->AddMessageHandler(new GenericHandler());
web_ui->SetController(controller);
return web_ui;
}