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

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

Issue 702353002: downloads: add "No downloads" and "No search results" messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: benjhayden@ review Created 6 years, 1 month 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
diff --git a/chrome/browser/ui/webui/downloads_ui.cc b/chrome/browser/ui/webui/downloads_ui.cc
index cb0f1571ccac184347a35f5e568102c187655565..ae867697343e99172962a066bb439e43289a3f89 100644
--- a/chrome/browser/ui/webui/downloads_ui.cc
+++ b/chrome/browser/ui/webui/downloads_ui.cc
@@ -47,6 +47,11 @@ content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
source->AddLocalizedString("open_downloads_folder",
IDS_DOWNLOAD_LINK_OPEN_DOWNLOADS_FOLDER);
+ // No results/downloads messages that show instead of the downloads list.
+ source->AddLocalizedString("no_downloads", IDS_DOWNLOAD_NO_DOWNLOADS);
+ source->AddLocalizedString("no_search_results",
+ IDS_DOWNLOAD_NO_SEARCH_RESULTS);
+
// Status.
source->AddLocalizedString("status_cancelled", IDS_DOWNLOAD_TAB_CANCELLED);
source->AddLocalizedString("status_removed", IDS_DOWNLOAD_FILE_REMOVED);
« no previous file with comments | « chrome/browser/resources/downloads/downloads.js ('k') | chrome/browser/ui/webui/downloads_ui_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698