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

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

Issue 12211049: Removing base::ThreadRestrictions::ScopedAllowIO from icon_manager_linux.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review changes. Created 7 years, 10 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/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 41950f846741132e227f6952c57d614636eb828e..8cd1a87337863ee1067d53e7a859eb371761299c 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -407,8 +407,8 @@ bool DownloadItemView::OnMouseDragged(const ui::MouseEvent& event) {
if (dragging_) {
if (download()->IsComplete()) {
IconManager* im = g_browser_process->icon_manager();
- gfx::Image* icon = im->LookupIcon(download()->GetUserVerifiedFilePath(),
- IconLoader::SMALL);
+ gfx::Image* icon = im->LookupIconFromFilepath(
+ download()->GetUserVerifiedFilePath(), IconLoader::SMALL);
if (icon) {
views::Widget* widget = GetWidget();
download_util::DragDownload(download(), icon,
@@ -774,8 +774,8 @@ void DownloadItemView::OnPaint(gfx::Canvas* canvas) {
// Load the icon.
IconManager* im = g_browser_process->icon_manager();
- gfx::Image* image = im->LookupIcon(download()->GetUserVerifiedFilePath(),
- IconLoader::SMALL);
+ gfx::Image* image = im->LookupIconFromFilepath(
+ download()->GetUserVerifiedFilePath(),IconLoader::SMALL);
const gfx::ImageSkia* icon = NULL;
if (IsShowingWarningDialog())
icon = warning_icon_;

Powered by Google App Engine
This is Rietveld 408576698