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

Issue 16994004: Remove DownloadItem::Is*() in favor of DI::GetState() (Closed)

Created:
7 years, 6 months ago by cmarcelo
Modified:
7 years, 6 months ago
CC:
chromium-reviews, asanka, benjhayden+dwatch_chromium.org, jam, dcheng, joi+watch-content_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@di-getstate-2
Visibility:
Public.

Description

Remove DownloadItem::Is*() in favor of DI::GetState() Rationale here is that we don't need two different ways of getting the same state information. BUG=241141 TEST=browser_tests/unit_tests/content_unittests w/ *Download*:*SavePage* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206604

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebased to fix new test, applied suggestions from bauerb and benjhayden #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -98 lines) Patch
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
M content/browser/android/download_controller_android_impl.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 6 chunks +6 lines, -21 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 12 chunks +12 lines, -12 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 3 chunks +10 lines, -24 lines 0 comments Download
M content/browser/download/drag_download_file.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download
M content/browser/download/save_package.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M content/public/browser/download_item.h View 1 1 chunk +0 lines, -14 lines 0 comments Download
M content/public/test/mock_download_item.h View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
cmarcelo
With this patch we close http://crbug.com/241141. Could you take a look? benjhayden: main reviewer & ...
7 years, 6 months ago (2013-06-13 18:46:17 UTC) #1
benjhayden
https://codereview.chromium.org/16994004/diff/1/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/16994004/diff/1/content/browser/download/download_item_impl.cc#newcode690 content/browser/download/download_item_impl.cc:690: const bool isComplete = GetState() == DownloadItem::COMPLETE; use hacker_style ...
7 years, 6 months ago (2013-06-13 19:01:45 UTC) #2
Bernhard Bauer
WebUI LGTM, with a suggestion: https://codereview.chromium.org/16994004/diff/1/chrome/browser/ui/webui/downloads_dom_handler.cc File chrome/browser/ui/webui/downloads_dom_handler.cc (right): https://codereview.chromium.org/16994004/diff/1/chrome/browser/ui/webui/downloads_dom_handler.cc#newcode361 chrome/browser/ui/webui/downloads_dom_handler.cc:361: if (!file || !web_contents ...
7 years, 6 months ago (2013-06-13 19:07:22 UTC) #3
cmarcelo
Rebased to fix new test added, applied suggestions from bauerb and benjhayden.
7 years, 6 months ago (2013-06-13 20:13:19 UTC) #4
benjhayden
lgtm
7 years, 6 months ago (2013-06-13 20:32:39 UTC) #5
bulach
lgtm for android/
7 years, 6 months ago (2013-06-14 09:21:30 UTC) #6
Jói
LGTM for //content/public.
7 years, 6 months ago (2013-06-14 12:57:57 UTC) #7
Paweł Hajdan Jr.
content/public/test LGTM
7 years, 6 months ago (2013-06-14 17:54:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caio.de.oliveira.filho@intel.com/16994004/9001
7 years, 6 months ago (2013-06-14 17:58:54 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=163739
7 years, 6 months ago (2013-06-15 00:49:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caio.de.oliveira.filho@intel.com/16994004/9001
7 years, 6 months ago (2013-06-15 14:27:52 UTC) #11
commit-bot: I haz the power
7 years, 6 months ago (2013-06-15 17:08:51 UTC) #12
Message was sent while issue was closed.
Change committed as 206604

Powered by Google App Engine
This is Rietveld 408576698