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

Issue 1067593005: Fix race conditions in ImageDecoder. (Closed)

Created:
5 years, 8 months ago by Lei Zhang
Modified:
5 years, 8 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, michaelpg+watch-options_chromium.org, Greg Billock, tapted, tzik, Lei Zhang, tfarina, dzhioev+watch_chromium.org, nhiroki, tommycli, pam+watch_chromium.org, oshima+watch_chromium.org, vandebo (ex-Chrome), chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org, Matt Giuca, Anand Mistry (off Chromium)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix race conditions in ImageDecoder. BUG=474590 Committed: https://crrev.com/c5eeb9f36639f5ff01f357926d3022e8e2b0a5ce Cr-Commit-Position: refs/heads/master@{#326350}

Patch Set 1 #

Patch Set 2 : add tests, add comments #

Patch Set 3 : do not use MessageLoopProxy #

Total comments: 7

Patch Set 4 : fix typo #

Total comments: 2

Patch Set 5 : rebase #

Patch Set 6 : Use TestBrowserThreadBundle, cleanup tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -96 lines) Patch
M chrome/browser/android/logo_service.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/apps/drive/drive_app_converter.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/bitmap_fetcher/bitmap_fetcher.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/bitmap_fetcher/bitmap_fetcher_service_unittest.cc View 1 2 3 4 5 6 chunks +27 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_function_base.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screens/user_image_screen.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/users/avatar/user_image_manager_test_util.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/image_decoder.h View 1 2 3 8 chunks +29 lines, -12 lines 0 comments Download
M chrome/browser/image_decoder.cc View 1 2 6 chunks +80 lines, -23 lines 0 comments Download
A chrome/browser/image_decoder_browsertest.cc View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
M chrome/browser/image_holder_unittest.cc View 1 2 3 4 5 4 chunks +22 lines, -10 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/profiles/profile_downloader.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/app_list/search/common/url_icon_source.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Lei Zhang
I'm worried https://codereview.chromium.org/1068743002/ is a bit too complicated, so I took a stab at fixing ...
5 years, 8 months ago (2015-04-20 19:03:28 UTC) #2
Lei Zhang
And some updates in patch set 2 and 3.
5 years, 8 months ago (2015-04-20 21:52:59 UTC) #3
Theresa
On 2015/04/20 19:03:28, Lei Zhang wrote: > I'm worried https://codereview.chromium.org/1068743002/ is a bit too > ...
5 years, 8 months ago (2015-04-20 22:13:14 UTC) #4
Theresa
https://codereview.chromium.org/1067593005/diff/40001/chrome/browser/image_decoder.cc File chrome/browser/image_decoder.cc (right): https://codereview.chromium.org/1067593005/diff/40001/chrome/browser/image_decoder.cc#newcode53 chrome/browser/image_decoder.cc:53: ImageDecoder::Cancel(this); Do we want a DCHECK explicitly enforcing the ...
5 years, 8 months ago (2015-04-20 22:35:26 UTC) #5
Lei Zhang
https://codereview.chromium.org/1067593005/diff/40001/chrome/browser/image_decoder.cc File chrome/browser/image_decoder.cc (right): https://codereview.chromium.org/1067593005/diff/40001/chrome/browser/image_decoder.cc#newcode53 chrome/browser/image_decoder.cc:53: ImageDecoder::Cancel(this); On 2015/04/20 22:35:26, twellington wrote: > Do we ...
5 years, 8 months ago (2015-04-21 00:44:00 UTC) #6
Theresa
lgtm
5 years, 8 months ago (2015-04-21 15:04:02 UTC) #7
Lei Zhang
+asargent who reviewed https://codereview.chromium.org/931993002/
5 years, 8 months ago (2015-04-21 19:24:39 UTC) #9
asargent_no_longer_on_chrome
one question about test, otherwise lgtm https://codereview.chromium.org/1067593005/diff/60001/chrome/browser/image_decoder_browsertest.cc File chrome/browser/image_decoder_browsertest.cc (right): https://codereview.chromium.org/1067593005/diff/60001/chrome/browser/image_decoder_browsertest.cc#newcode68 chrome/browser/image_decoder_browsertest.cc:68: test_request.reset(); At this ...
5 years, 8 months ago (2015-04-21 21:14:57 UTC) #10
Lei Zhang
https://codereview.chromium.org/1067593005/diff/60001/chrome/browser/image_decoder_browsertest.cc File chrome/browser/image_decoder_browsertest.cc (right): https://codereview.chromium.org/1067593005/diff/60001/chrome/browser/image_decoder_browsertest.cc#newcode68 chrome/browser/image_decoder_browsertest.cc:68: test_request.reset(); On 2015/04/21 21:14:57, Antony Sargent wrote: > At ...
5 years, 8 months ago (2015-04-21 22:19:05 UTC) #11
asargent_no_longer_on_chrome
On 2015/04/21 22:19:05, Lei Zhang wrote: > https://codereview.chromium.org/1067593005/diff/60001/chrome/browser/image_decoder_browsertest.cc > File chrome/browser/image_decoder_browsertest.cc (right): > > https://codereview.chromium.org/1067593005/diff/60001/chrome/browser/image_decoder_browsertest.cc#newcode68 ...
5 years, 8 months ago (2015-04-21 22:55:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1067593005/100001
5 years, 8 months ago (2015-04-22 17:15:59 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 8 months ago (2015-04-22 18:42:55 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-22 18:43:56 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c5eeb9f36639f5ff01f357926d3022e8e2b0a5ce
Cr-Commit-Position: refs/heads/master@{#326350}

Powered by Google App Engine
This is Rietveld 408576698