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

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 15011006: Remove DownloadItem::GetUserVerifiedFilePath() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with r201294 Created 7 years, 7 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/ui/gtk/download/download_item_gtk.cc ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index bf8787ebf2ecb5cb7954c887e7bdb5d1c475df1c..dce9024addf28526035ea18e2601b44f7c47fa7e 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -408,7 +408,7 @@ bool DownloadItemView::OnMouseDragged(const ui::MouseEvent& event) {
if (download()->IsComplete()) {
IconManager* im = g_browser_process->icon_manager();
gfx::Image* icon = im->LookupIconFromFilepath(
- download()->GetUserVerifiedFilePath(), IconLoader::SMALL);
+ download()->GetTargetFilePath(), IconLoader::SMALL);
if (icon) {
views::Widget* widget = GetWidget();
download_util::DragDownload(download(), icon,
@@ -775,7 +775,7 @@ void DownloadItemView::OnPaint(gfx::Canvas* canvas) {
// Load the icon.
IconManager* im = g_browser_process->icon_manager();
gfx::Image* image = im->LookupIconFromFilepath(
- download()->GetUserVerifiedFilePath(),IconLoader::SMALL);
+ download()->GetTargetFilePath(), IconLoader::SMALL);
const gfx::ImageSkia* icon = NULL;
if (IsShowingWarningDialog())
icon = warning_icon_;
@@ -843,7 +843,7 @@ void DownloadItemView::OpenDownload() {
void DownloadItemView::LoadIcon() {
IconManager* im = g_browser_process->icon_manager();
- last_download_item_path_ = download()->GetUserVerifiedFilePath();
+ last_download_item_path_ = download()->GetTargetFilePath();
im->LoadIcon(last_download_item_path_,
IconLoader::SMALL,
base::Bind(&DownloadItemView::OnExtractIconComplete,
@@ -852,7 +852,7 @@ void DownloadItemView::LoadIcon() {
}
void DownloadItemView::LoadIconIfItemPathChanged() {
- base::FilePath current_download_path = download()->GetUserVerifiedFilePath();
+ base::FilePath current_download_path = download()->GetTargetFilePath();
if (last_download_item_path_ == current_download_path)
return;
« no previous file with comments | « chrome/browser/ui/gtk/download/download_item_gtk.cc ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698