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

Issue 15575002: Use DownloadManager::Observer in TestDownloadShelf (Closed)

Created:
7 years, 7 months ago by cmarcelo
Modified:
7 years, 7 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Use DownloadManager::Observer in TestDownloadShelf Use DownloadManager::Observer interface to track the lifetime of DownloadManager instead of keeping a counted reference to it. This will easy the transition of DownloadManager from being refcounted to be owned by the BrowserContext. BUG=237871 TEST=unit_tests with filter for Download\* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201768

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixing after Ben's comments. #

Patch Set 3 : Add missing OVERRIDE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -8 lines) Patch
M chrome/browser/download/test_download_shelf.h View 1 2 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/download/test_download_shelf.cc View 1 3 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
cmarcelo
7 years, 7 months ago (2013-05-21 17:56:07 UTC) #1
benjhayden
https://codereview.chromium.org/15575002/diff/1/chrome/browser/download/test_download_shelf.cc File chrome/browser/download/test_download_shelf.cc (right): https://codereview.chromium.org/15575002/diff/1/chrome/browser/download/test_download_shelf.cc#newcode42 chrome/browser/download/test_download_shelf.cc:42: DCHECK(manager == download_manager_); DCHECK_EQ? https://codereview.chromium.org/15575002/diff/1/chrome/browser/download/test_download_shelf.cc#newcode65 chrome/browser/download/test_download_shelf.cc:65: return NULL; Why ...
7 years, 7 months ago (2013-05-21 18:14:28 UTC) #2
cmarcelo
Updated.
7 years, 7 months ago (2013-05-21 18:21:04 UTC) #3
benjhayden
lgtm
7 years, 7 months ago (2013-05-21 18:53:37 UTC) #4
benjhayden
../../chrome/browser/download/test_download_shelf.h:33:67:error: [chromium-style] Overriding method must be marked with OVERRIDE. virtual void ManagerGoingDown(content::DownloadManager* manager);
7 years, 7 months ago (2013-05-21 19:40:04 UTC) #5
cmarcelo
On 2013/05/21 19:40:04, benjhayden_chromium wrote: > ../../chrome/browser/download/test_download_shelf.h:33:67:error: > [chromium-style] Overriding method must be marked with ...
7 years, 7 months ago (2013-05-21 19:41:28 UTC) #6
benjhayden
Ok, just re-mail when you've uploaded the fix and we'll put it back on the ...
7 years, 7 months ago (2013-05-21 20:10:43 UTC) #7
cmarcelo
Updated to add missing OVERRIDE.
7 years, 7 months ago (2013-05-21 20:31:31 UTC) #8
cmarcelo
Those errors doesn't seem related to the patch. Should we trigger the CQ to make ...
7 years, 7 months ago (2013-05-22 17:29:57 UTC) #9
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/15575002/14001
7 years, 7 months ago (2013-05-22 17:38:01 UTC) #10
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=152577
7 years, 7 months ago (2013-05-23 05:19:13 UTC) #11
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/15575002/14001
7 years, 7 months ago (2013-05-23 11:40:52 UTC) #12
commit-bot: I haz the power
7 years, 7 months ago (2013-05-23 12:47:09 UTC) #13
Message was sent while issue was closed.
Change committed as 201768

Powered by Google App Engine
This is Rietveld 408576698