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

Issue 2219953004: Refactor download image-MIME-type-detection code. (Closed)

Created:
4 years, 4 months ago by Daniel Erat
Modified:
4 years, 4 months ago
CC:
chromium-reviews, asanka
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor download image-MIME-type-detection code. Refactor duplicated image-MIME-type-detection code from DownloadCommands and DownloadItemNotification into a new DownloadItemModel::HasSupportedImageMimeType() method. BUG=605805 Committed: https://crrev.com/759969dbc064ab0925287ad8a62eacf588faec7f Cr-Commit-Position: refs/heads/master@{#410382}

Patch Set 1 #

Patch Set 2 : fix windows compile, hopefully #

Total comments: 2

Patch Set 3 : add more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -33 lines) Patch
M ash/common/system/chromeos/palette/palette_utils.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/chromeos/note_taking_app_utils.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/note_taking_app_utils.cc View 1 2 1 chunk +83 lines, -0 lines 0 comments Download
M chrome/browser/download/download_commands.cc View 2 chunks +3 lines, -16 lines 0 comments Download
M chrome/browser/download/download_item_model.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/download/download_item_model.cc View 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/download/download_item_model_unittest.cc View 1 2 2 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/download/notification/download_item_notification.cc View 1 chunk +1 line, -16 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
Daniel Erat
4 years, 4 months ago (2016-08-05 23:46:27 UTC) #2
Randy Smith (Not in Mondays)
LGTM, but I'd like to also get an LGTM from Steve, who's been working in ...
4 years, 4 months ago (2016-08-08 14:42:52 UTC) #12
svaldez
Just a note on additional test cases, but otherwise LGTM. https://codereview.chromium.org/2219953004/diff/20001/chrome/browser/download/download_item_model_unittest.cc File chrome/browser/download/download_item_model_unittest.cc (right): https://codereview.chromium.org/2219953004/diff/20001/chrome/browser/download/download_item_model_unittest.cc#newcode400 ...
4 years, 4 months ago (2016-08-08 15:07:52 UTC) #13
Daniel Erat
thanks for the quick review! https://codereview.chromium.org/2219953004/diff/20001/chrome/browser/download/download_item_model_unittest.cc File chrome/browser/download/download_item_model_unittest.cc (right): https://codereview.chromium.org/2219953004/diff/20001/chrome/browser/download/download_item_model_unittest.cc#newcode400 chrome/browser/download/download_item_model_unittest.cc:400: EXPECT_TRUE(model().HasSupportedImageMimeType()); On 2016/08/08 15:07:52, ...
4 years, 4 months ago (2016-08-08 16:02:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2219953004/40001
4 years, 4 months ago (2016-08-08 16:03:02 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-08 16:48:18 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/759969dbc064ab0925287ad8a62eacf588faec7f Cr-Commit-Position: refs/heads/master@{#410382}
4 years, 4 months ago (2016-08-08 16:51:17 UTC) #20
Daniel Erat
argh, committed some code that i didn't intend to by re-uploading without telling git-cl to ...
4 years, 4 months ago (2016-08-08 18:49:11 UTC) #21
Daniel Erat
4 years, 4 months ago (2016-08-08 18:49:41 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2221113003/ by derat@chromium.org.

The reason for reverting is: accidentally mixed in another change
(https://codereview.chromium.org/2225543002/).

Powered by Google App Engine
This is Rietveld 408576698