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

Issue 12211049: Removing base::ThreadRestrictions::ScopedAllowIO from icon_manager_linux.cc (Closed)

Created:
7 years, 10 months ago by shatch
Modified:
7 years, 8 months ago
CC:
chromium-reviews, asanka, benjhayden+dwatch_chromium.org, tfarina, Randy Smith (Not in Mondays), sail+watch_chromium.org, Aaron Boodman, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Removing base::ThreadRestrictions::ScopedAllowIO from icon_manager_linux.cc Changed cache to map file paths to icons rather than by group id. Renamed GetGroupIDFromFilepath to reflect that it can potentially do file io. BUG=72740 TEST=Bring up downloads ui on linux and file icons still show up. R=rdsmith@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192143

Patch Set 1 #

Total comments: 1

Patch Set 2 : Review changes. #

Total comments: 21

Patch Set 3 : Review changes. #

Total comments: 8

Patch Set 4 : Changes from review. #

Patch Set 5 : Messed up git. #

Total comments: 4

Patch Set 6 : Changes from review. #

Total comments: 2

Patch Set 7 : Changes from review. #

Patch Set 8 : Try delete again. #

Patch Set 9 : Fix trybot. #

Patch Set 10 : Try delete again. #

Patch Set 11 : Rebased. #

Patch Set 12 : Fix presubmit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -117 lines) Patch
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/icon_loader.h View 1 2 3 4 5 6 4 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/icon_loader.cc View 1 2 3 4 5 2 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/icon_loader_android.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/icon_loader_chromeos.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/icon_loader_linux.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/icon_loader_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/icon_loader_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/icon_manager.h View 1 2 3 4 5 6 4 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/icon_manager.cc View 1 2 3 5 chunks +40 lines, -13 lines 0 comments Download
M chrome/browser/icon_manager_android.cc View 1 2 3 4 5 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/browser/icon_manager_chromeos.cc View 1 2 3 4 5 6 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/browser/icon_manager_linux.cc View 1 2 3 4 5 1 chunk +0 lines, -20 lines 0 comments Download
D chrome/browser/icon_manager_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -13 lines 0 comments Download
D chrome/browser/icon_manager_win.cc View 1 2 3 4 5 6 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/fileicon_source.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
shatch
7 years, 10 months ago (2013-02-08 23:22:21 UTC) #1
Randy Smith (Not in Mondays)
Downloads code LGTM.
7 years, 10 months ago (2013-02-11 00:45:58 UTC) #2
Robert Sesek
https://codereview.chromium.org/12211049/diff/1/chrome/browser/icon_manager.h File chrome/browser/icon_manager.h (right): https://codereview.chromium.org/12211049/diff/1/chrome/browser/icon_manager.h#newcode94 chrome/browser/icon_manager.h:94: CacheKey(const base::FilePath& file_name, IconLoader::IconSize size); I think this change ...
7 years, 10 months ago (2013-02-11 20:52:22 UTC) #3
Robert Sesek
On 2013/02/11 20:52:22, rsesek wrote: > https://codereview.chromium.org/12211049/diff/1/chrome/browser/icon_manager.h > File chrome/browser/icon_manager.h (right): > > https://codereview.chromium.org/12211049/diff/1/chrome/browser/icon_manager.h#newcode94 > ...
7 years, 10 months ago (2013-02-11 21:09:43 UTC) #4
shatch
New snapshot loaded. Added 2-phase icon loading as described by rsesek.
7 years, 10 months ago (2013-02-12 00:01:27 UTC) #5
Robert Sesek
https://codereview.chromium.org/12211049/diff/4002/chrome/browser/icon_loader.cc File chrome/browser/icon_loader.cc (right): https://codereview.chromium.org/12211049/diff/4002/chrome/browser/icon_loader.cc#newcode38 chrome/browser/icon_loader.cc:38: IconGroupID* group = new IconGroupID(); Who owns this? When ...
7 years, 10 months ago (2013-02-12 16:49:25 UTC) #6
shatch
New snapshot uploaded. https://codereview.chromium.org/12211049/diff/4002/chrome/browser/icon_loader.cc File chrome/browser/icon_loader.cc (right): https://codereview.chromium.org/12211049/diff/4002/chrome/browser/icon_loader.cc#newcode38 chrome/browser/icon_loader.cc:38: IconGroupID* group = new IconGroupID(); On ...
7 years, 10 months ago (2013-02-13 16:14:52 UTC) #7
Robert Sesek
Just a few more comments. https://codereview.chromium.org/12211049/diff/4002/chrome/browser/icon_manager.h File chrome/browser/icon_manager.h (right): https://codereview.chromium.org/12211049/diff/4002/chrome/browser/icon_manager.h#newcode67 chrome/browser/icon_manager.h:67: gfx::Image* LookupIconFromGroup(const IconGroupID& group, ...
7 years, 10 months ago (2013-02-13 17:33:04 UTC) #8
shatch
New snapshot uploaded. https://chromiumcodereview.appspot.com/12211049/diff/4002/chrome/browser/icon_manager.h File chrome/browser/icon_manager.h (right): https://chromiumcodereview.appspot.com/12211049/diff/4002/chrome/browser/icon_manager.h#newcode67 chrome/browser/icon_manager.h:67: gfx::Image* LookupIconFromGroup(const IconGroupID& group, On 2013/02/13 ...
7 years, 10 months ago (2013-02-21 20:02:06 UTC) #9
Robert Sesek
I lied. One last cleanup idea. https://chromiumcodereview.appspot.com/12211049/diff/25002/chrome/browser/icon_manager.h File chrome/browser/icon_manager.h (right): https://chromiumcodereview.appspot.com/12211049/diff/25002/chrome/browser/icon_manager.h#newcode94 chrome/browser/icon_manager.h:94: static IconGroupID ReadGroupIDFromFilepath(const ...
7 years, 10 months ago (2013-02-21 21:07:10 UTC) #10
Robert Sesek
Just checking in on this -- it's good cleanup and it's almost good to go.
7 years, 9 months ago (2013-03-07 15:34:06 UTC) #11
shatch
Sorry, let this change slip. New snapshot uploaded. https://codereview.chromium.org/12211049/diff/25002/chrome/browser/icon_manager.h File chrome/browser/icon_manager.h (right): https://codereview.chromium.org/12211049/diff/25002/chrome/browser/icon_manager.h#newcode94 chrome/browser/icon_manager.h:94: static ...
7 years, 9 months ago (2013-03-08 18:34:57 UTC) #12
Robert Sesek
https://codereview.chromium.org/12211049/diff/25002/chrome/browser/icon_manager_android.cc File chrome/browser/icon_manager_android.cc (right): https://codereview.chromium.org/12211049/diff/25002/chrome/browser/icon_manager_android.cc#newcode1 chrome/browser/icon_manager_android.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 9 months ago (2013-03-08 18:41:26 UTC) #13
shatch
On 2013/03/08 18:41:26, rsesek wrote: > https://codereview.chromium.org/12211049/diff/25002/chrome/browser/icon_manager_android.cc > File chrome/browser/icon_manager_android.cc (right): > > https://codereview.chromium.org/12211049/diff/25002/chrome/browser/icon_manager_android.cc#newcode1 > ...
7 years, 9 months ago (2013-03-09 01:05:52 UTC) #14
Robert Sesek
LGTM! https://codereview.chromium.org/12211049/diff/25002/chrome/browser/icon_manager_android.cc File chrome/browser/icon_manager_android.cc (right): https://codereview.chromium.org/12211049/diff/25002/chrome/browser/icon_manager_android.cc#newcode1 chrome/browser/icon_manager_android.cc:1: // Copyright (c) 2012 The Chromium Authors. All ...
7 years, 9 months ago (2013-03-11 15:19:10 UTC) #15
shatch
On 2013/03/11 15:19:10, rsesek wrote: > LGTM! > > https://codereview.chromium.org/12211049/diff/25002/chrome/browser/icon_manager_android.cc > File chrome/browser/icon_manager_android.cc (right): > ...
7 years, 9 months ago (2013-03-15 23:23:57 UTC) #16
Robert Sesek
If you look at the raw patch (which is what will be used by CQ) ...
7 years, 9 months ago (2013-03-18 17:19:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/12211049/81001
7 years, 9 months ago (2013-03-19 16:26:47 UTC) #18
commit-bot: I haz the power
Presubmit check for 12211049-81001 failed and returned exit status 1. INFO:root:Found 15 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-19 16:27:02 UTC) #19
brettw
owners lgtm rubberstamp.
7 years, 9 months ago (2013-03-28 22:40:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/12211049/81001
7 years, 8 months ago (2013-03-29 15:32:17 UTC) #21
commit-bot: I haz the power
Failed to apply patch for chrome/browser/icon_loader_mac.mm: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-03-29 15:32:24 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/12211049/92001
7 years, 8 months ago (2013-04-02 16:26:24 UTC) #23
commit-bot: I haz the power
Presubmit check for 12211049-92001 failed and returned exit status 1. INFO:root:Found 15 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-02 16:26:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/12211049/99001
7 years, 8 months ago (2013-04-03 16:44:25 UTC) #25
commit-bot: I haz the power
7 years, 8 months ago (2013-04-03 20:51:01 UTC) #26
Message was sent while issue was closed.
Change committed as 192143

Powered by Google App Engine
This is Rietveld 408576698