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

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

Issue 1300473002: MD Download: add "Nothing to see here..." empty downloads message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: less flicker? Created 5 years, 4 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
« no previous file with comments | « chrome/browser/resources/md_downloads/manager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6ec23ae3cb8897a9275d5ac8ed1e7f3c496858e9..c3f008b250e5955bac5826c5eaec92aa61358306 100644
--- a/chrome/browser/ui/webui/downloads_ui.cc
+++ b/chrome/browser/ui/webui/downloads_ui.cc
@@ -47,8 +47,7 @@ content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
source->AddLocalizedString("openDownloadsFolder",
IDS_DOWNLOAD_LINK_OPEN_DOWNLOADS_FOLDER);
- // No results/downloads messages that show instead of the downloads list.
- source->AddLocalizedString("noDownloads", IDS_DOWNLOAD_NO_DOWNLOADS);
+ // No results message that shows instead of the downloads list.
source->AddLocalizedString("noSearchResults",
IDS_DOWNLOAD_NO_SEARCH_RESULTS);
@@ -97,6 +96,7 @@ content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
if (switches::MdDownloadsEnabled()) {
source->AddLocalizedString("search", IDS_MD_DOWNLOAD_SEARCH);
source->AddLocalizedString("controlRetry", IDS_MD_DOWNLOAD_LINK_RETRY);
+ source->AddLocalizedString("noDownloads", IDS_MD_DOWNLOAD_NO_DOWNLOADS);
source->AddResourcePath("action_service.html",
IDR_MD_DOWNLOADS_ACTION_SERVICE_HTML);
@@ -118,6 +118,7 @@ content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
} else {
source->AddLocalizedString("searchButton", IDS_DOWNLOAD_SEARCH_BUTTON);
source->AddLocalizedString("controlRetry", IDS_DOWNLOAD_LINK_RETRY);
+ source->AddLocalizedString("noDownloads", IDS_DOWNLOAD_NO_DOWNLOADS);
source->AddResourcePath("item_view.js", IDR_DOWNLOADS_ITEM_VIEW_JS);
source->AddResourcePath("focus_row.js", IDR_DOWNLOADS_FOCUS_ROW_JS);
« no previous file with comments | « chrome/browser/resources/md_downloads/manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698