diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-29 04:27:58 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-29 04:27:58 +0000 |
commit | eb2ef21c332ae0de01e236699e1a46003941897c (patch) | |
tree | 23e27458fb0f7f34e20f368a4c073d1ca489eac7 /content/browser/web_contents/web_contents_impl.cc | |
parent | ba23e67a80f782d126f59f1a33555c16f7843605 (diff) | |
download | chromium_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.cc | 2 |
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; } |