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

Unified Diff: chrome/browser/ui/webui/downloads_ui.cc

Issue 11881055: Simplify WebUI data sources. Currently WebUI data sources implement a URLDataSourceDelegate interfa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix issue in about_ui exposed by cros tests Created 7 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
Index: chrome/browser/ui/webui/downloads_ui.cc
===================================================================
--- chrome/browser/ui/webui/downloads_ui.cc (revision 176942)
+++ chrome/browser/ui/webui/downloads_ui.cc (working copy)
@@ -75,6 +75,7 @@
source->add_resource_path("downloads.css", IDR_DOWNLOADS_CSS);
source->add_resource_path("downloads.js", IDR_DOWNLOADS_JS);
source->set_default_resource(IDR_DOWNLOADS_HTML);
+ source->set_use_json_js_format_v2();
return source;
}
@@ -96,8 +97,7 @@
// Set up the chrome://downloads/ source.
ChromeWebUIDataSource* source = CreateDownloadsUIHTMLSource();
- source->set_use_json_js_format_v2();
- ChromeURLDataManager::AddDataSource(profile, source);
+ ChromeURLDataManager::AddDataSourceImpl(profile, source);
#if defined(ENABLE_THEMES)
ThemeSource* theme = new ThemeSource(profile);
ChromeURLDataManager::AddDataSource(profile, theme);

Powered by Google App Engine
This is Rietveld 408576698