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

Side by Side Diff: chrome/browser/ui/webui/downloads_ui.cc

Issue 7070001: Change "Save" to "Keep" in dangerous download confirmation prompt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update again Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/downloads_ui.h" 5 #include "chrome/browser/ui/webui/downloads_ui.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "base/string_piece.h" 8 #include "base/string_piece.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 AddLocalizedString("clear_all", IDS_DOWNLOAD_LINK_CLEAR_ALL); 62 AddLocalizedString("clear_all", IDS_DOWNLOAD_LINK_CLEAR_ALL);
63 63
64 // Status. 64 // Status.
65 AddLocalizedString("status_cancelled", IDS_DOWNLOAD_TAB_CANCELED); 65 AddLocalizedString("status_cancelled", IDS_DOWNLOAD_TAB_CANCELED);
66 AddLocalizedString("status_paused", IDS_DOWNLOAD_PROGRESS_PAUSED); 66 AddLocalizedString("status_paused", IDS_DOWNLOAD_PROGRESS_PAUSED);
67 AddLocalizedString("status_interrupted", IDS_DOWNLOAD_PROGRESS_INTERRUPTED); 67 AddLocalizedString("status_interrupted", IDS_DOWNLOAD_PROGRESS_INTERRUPTED);
68 68
69 // Dangerous file. 69 // Dangerous file.
70 AddLocalizedString("danger_file_desc", IDS_PROMPT_DANGEROUS_DOWNLOAD); 70 AddLocalizedString("danger_file_desc", IDS_PROMPT_DANGEROUS_DOWNLOAD);
71 AddLocalizedString("danger_url_desc", IDS_PROMPT_UNSAFE_DOWNLOAD_URL); 71 AddLocalizedString("danger_url_desc", IDS_PROMPT_UNSAFE_DOWNLOAD_URL);
72 AddLocalizedString("danger_save", IDS_SAVE_DOWNLOAD); 72 AddLocalizedString("danger_save", IDS_CONFIRM_DOWNLOAD);
73 AddLocalizedString("danger_discard", IDS_DISCARD_DOWNLOAD); 73 AddLocalizedString("danger_discard", IDS_DISCARD_DOWNLOAD);
74 74
75 // Controls. 75 // Controls.
76 AddLocalizedString("control_pause", IDS_DOWNLOAD_LINK_PAUSE); 76 AddLocalizedString("control_pause", IDS_DOWNLOAD_LINK_PAUSE);
77 if (browser_defaults::kDownloadPageHasShowInFolder) { 77 if (browser_defaults::kDownloadPageHasShowInFolder) {
78 AddLocalizedString("control_showinfolder", IDS_DOWNLOAD_LINK_SHOW); 78 AddLocalizedString("control_showinfolder", IDS_DOWNLOAD_LINK_SHOW);
79 } 79 }
80 AddLocalizedString("control_retry", IDS_DOWNLOAD_LINK_RETRY); 80 AddLocalizedString("control_retry", IDS_DOWNLOAD_LINK_RETRY);
81 AddLocalizedString("control_cancel", IDS_DOWNLOAD_LINK_CANCEL); 81 AddLocalizedString("control_cancel", IDS_DOWNLOAD_LINK_CANCEL);
82 AddLocalizedString("control_resume", IDS_DOWNLOAD_LINK_RESUME); 82 AddLocalizedString("control_resume", IDS_DOWNLOAD_LINK_RESUME);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // Set up the chrome://downloads/ source. 122 // Set up the chrome://downloads/ source.
123 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); 123 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source);
124 } 124 }
125 125
126 // static 126 // static
127 RefCountedMemory* DownloadsUI::GetFaviconResourceBytes() { 127 RefCountedMemory* DownloadsUI::GetFaviconResourceBytes() {
128 return ResourceBundle::GetSharedInstance(). 128 return ResourceBundle::GetSharedInstance().
129 LoadDataResourceBytes(IDR_DOWNLOADS_FAVICON); 129 LoadDataResourceBytes(IDR_DOWNLOADS_FAVICON);
130 } 130 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698