summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/instant_ui.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-16 02:46:41 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-16 02:46:41 +0000
commit90d9f1e27c1099eee79187697e696c973595b846 (patch)
tree953fcc98a54efcc63761d6e7ff52c753486e96fd /chrome/browser/ui/webui/instant_ui.cc
parent8be159e46b81c5a85998fc81a96dc2cb56105d4d (diff)
downloadchromium_src-90d9f1e27c1099eee79187697e696c973595b846.zip
chromium_src-90d9f1e27c1099eee79187697e696c973595b846.tar.gz
chromium_src-90d9f1e27c1099eee79187697e696c973595b846.tar.bz2
Simplify WebUI data sources. Currently WebUI data sources implement a URLDataSourceDelegate interface, and have a URLDataSource interface just for sending the response. Remove the need to have the URLDataSource interface at all, and instead pass a callback to a data source's StartDataRequest method. That also allows us to hide the request_id parameter, which is an internal detail, and makes testing simpler.
BUG=169170 Review URL: https://codereview.chromium.org/11881055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/instant_ui.cc')
-rw-r--r--chrome/browser/ui/webui/instant_ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/webui/instant_ui.cc b/chrome/browser/ui/webui/instant_ui.cc
index 7ba94ad..9e8ff07 100644
--- a/chrome/browser/ui/webui/instant_ui.cc
+++ b/chrome/browser/ui/webui/instant_ui.cc
@@ -98,7 +98,7 @@ InstantUI::InstantUI(content::WebUI* web_ui) : WebUIController(web_ui) {
// Set up the chrome://instant/ source.
Profile* profile = Profile::FromWebUI(web_ui);
- ChromeURLDataManager::AddDataSource(profile, CreateInstantHTMLSource());
+ ChromeURLDataManager::AddDataSourceImpl(profile, CreateInstantHTMLSource());
}
// static