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

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

Issue 10238016: convert history page to loadTimeData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/history_ui.cc
diff --git a/chrome/browser/ui/webui/history_ui.cc b/chrome/browser/ui/webui/history_ui.cc
index 19264a6ca917fefc49e6c79f157cdabee0c9311d..073c2f19dfe9a9c1dd4e8b12e4428852f8e9d682 100644
--- a/chrome/browser/ui/webui/history_ui.cc
+++ b/chrome/browser/ui/webui/history_ui.cc
@@ -470,11 +470,10 @@ void BrowsingHistoryHandler::Observe(
HistoryUI::HistoryUI(content::WebUI* web_ui) : WebUIController(web_ui) {
web_ui->AddMessageHandler(new BrowsingHistoryHandler());
- HistoryUIHTMLSource* html_source = new HistoryUIHTMLSource();
-
// Set up the chrome://history-frame/ source.
- Profile* profile = Profile::FromWebUI(web_ui);
- ChromeURLDataManager::AddDataSource(profile, html_source);
+ HistoryUIHTMLSource* html_source = new HistoryUIHTMLSource();
+ html_source->set_use_json_js_format_v2();
+ ChromeURLDataManager::AddDataSource(Profile::FromWebUI(web_ui), html_source);
}
// static
« chrome/browser/resources/history/history.js ('K') | « chrome/browser/resources/history/history.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698