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

Issue 1075006: Eliminate all UI thread decoding of extension images.... (Closed)

Created:
10 years, 9 months ago by Finnur
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Erik does not do reviews, pam+watch_chromium.org, John Grabowski, ben+cc_chromium.org
Visibility:
Public.

Description

Eliminate all UI thread decoding of extension images. Except one, that is. We have one location we need to take a look at (I've added a comment). This changelist converts UI usage of DecodeImage on the UI thread to a revamped and simplified ImageLoadingTracker class. I plan on adding to GetFilePath a DCHECK for the File thread but decided to do so in another changelist, since it has a high likelyhood of flushing something out and be backed out because of that. This started out as issue 38521 (make infobar use cached icons) but grew in scope to just eliminate all UI thread access to DecodeImage and GetFilePath. BUG=http://crbug.com/38521 TEST=None (extensions should work as before) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42471

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 12

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -369 lines) Patch
M chrome/browser/cocoa/extensions/browser_action_button.mm View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/cocoa/extensions/extension_action_context_menu.mm View 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -15 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
A + chrome/browser/extensions/extension_action_context_menu_model.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
A + chrome/browser/extensions/extension_action_context_menu_model.cc View 1 2 2 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 10 11 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_model.h View 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_model.cc View 6 7 8 9 10 11 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_infobar_delegate.cc View 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -29 lines 0 comments Download
M chrome/browser/extensions/extension_dom_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui.h View 3 4 5 6 7 8 9 10 11 5 chunks +26 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui.cc View 3 4 5 6 7 8 9 10 11 7 chunks +76 lines, -44 lines 0 comments Download
M chrome/browser/extensions/extensions_ui.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extensions_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/extensions/image_loading_tracker.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +36 lines, -45 lines 0 comments Download
M chrome/browser/extensions/image_loading_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +84 lines, -61 lines 0 comments Download
M chrome/browser/gtk/browser_actions_toolbar_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +8 lines, -15 lines 0 comments Download
M chrome/browser/views/browser_actions_container.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/views/browser_actions_container.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/views/infobars/extension_infobar.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/views/infobars/extension_infobar.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +40 lines, -36 lines 0 comments Download
M chrome/browser/views/location_bar_view.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/views/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +8 lines, -17 lines 0 comments Download
M chrome/common/extensions/extension.h View 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension_resource.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_resource.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Finnur
Looks scary but a lot is just plumbing after adding a param to a virtual ...
10 years, 9 months ago (2010-03-19 04:29:58 UTC) #1
Aaron Boodman
http://codereview.chromium.org/1075006/diff/1/4 File chrome/browser/extensions/extension_action_context_menu_model.cc (right): http://codereview.chromium.org/1075006/diff/1/4#newcode118 chrome/browser/extensions/extension_action_context_menu_model.cc:118: tracker_ = new ImageLoadingTracker(this, 1); Could you share more ...
10 years, 9 months ago (2010-03-19 05:00:36 UTC) #2
asargent_no_longer_on_chrome
http://codereview.chromium.org/1075006/diff/20001/21003 File chrome/browser/extensions/extension_action_context_menu_model.cc (right): http://codereview.chromium.org/1075006/diff/20001/21003#newcode153 chrome/browser/extensions/extension_action_context_menu_model.cc:153: ExtensionInstallUI client(BrowserList::GetLastActive()->profile()); Any chance that BrowserList::GetLastActive() will return a ...
10 years, 9 months ago (2010-03-19 17:38:21 UTC) #3
Finnur
So, I've uploaded the latest version. I plan on resubmitting to the try bots when ...
10 years, 9 months ago (2010-03-23 18:25:42 UTC) #4
Aaron Boodman
http://codereview.chromium.org/1075006/diff/64001/65017 File chrome/browser/cocoa/extensions/browser_action_button.mm (right): http://codereview.chromium.org/1075006/diff/64001/65017#newcode45 chrome/browser/cocoa/extensions/browser_action_button.mm:45: tracker_(this) { Does this need an ALLOW_THIS_IN_INITIALIZER ? http://codereview.chromium.org/1075006/diff/64001/65026 ...
10 years, 9 months ago (2010-03-23 19:10:55 UTC) #5
Finnur
http://codereview.chromium.org/1075006/diff/64001/65017 File chrome/browser/cocoa/extensions/browser_action_button.mm (right): http://codereview.chromium.org/1075006/diff/64001/65017#newcode45 chrome/browser/cocoa/extensions/browser_action_button.mm:45: tracker_(this) { Don't think we need ALLOW_THIS here (for ...
10 years, 9 months ago (2010-03-23 21:19:48 UTC) #6
Aaron Boodman
lgtm!
10 years, 9 months ago (2010-03-23 21:29:15 UTC) #7
asargent_no_longer_on_chrome
10 years, 9 months ago (2010-03-23 21:51:15 UTC) #8
lgtm too

Powered by Google App Engine
This is Rietveld 408576698