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

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: Fix presubmit. Created 7 years, 9 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 bba014758c0ab99a544c1675aed9a2a99595fdf3..d1ad0a16fb0aae3ae1834931273d961c9a0b10f6 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -408,8 +408,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,
@@ -775,8 +775,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_;
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_mac.mm ('k') | chrome/browser/ui/webui/downloads_dom_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698