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

Issue 11941015: Move OpenItem/ShowItemInFolder from ContentBrowserClient to DownloadManagerDelegate (Closed)

Created:
7 years, 11 months ago by hashimoto
Modified:
7 years, 11 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, chromium-apps-reviews_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Move OpenItem/ShowItemInFolder from ContentBrowserClient to DownloadManagerDelegate ChromeDownloadManagerDelegate provides Profile which can be used to perform drive file operations. MockDownloadOpenForTesting is moved from DownloadItem to DownloadManager. Rename DownloadManager::DownloadOpened to OpenDownload. Add DownloadManager::ShowDownloadInShell. BUG=154713 TEST=git try TBR=joth@chromium.org for android_webview Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177920

Patch Set 1 : _ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -105 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 chunk +0 lines, -2 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 2 chunks +1 line, -26 lines 2 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_unittest.cc View 2 chunks +1 line, -25 lines 0 comments Download
M content/browser/download/download_item_impl.h View 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 5 chunks +2 lines, -16 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.h View 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/download/download_item_impl_delegate.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/download/download_manager_impl.h View 3 chunks +6 lines, -1 line 0 comments Download
M content/browser/download/download_manager_impl.cc View 3 chunks +15 lines, -2 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/public/browser/download_item.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/download_manager.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/download_manager_delegate.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/test/mock_download_item.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/test/mock_download_manager.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
hashimoto
Could you review this? This patch is a preparation for the fix of crbug.com/154713. With ...
7 years, 11 months ago (2013-01-18 11:41:32 UTC) #1
Randy Smith (Not in Mondays)
Happy to take a look (later this morning) but content/public/browser changes that aren't download related ...
7 years, 11 months ago (2013-01-18 14:59:01 UTC) #2
Randy Smith (Not in Mondays)
Code-wise, this LGTM. I'm a bit concerned on the architectural level of making opening from ...
7 years, 11 months ago (2013-01-18 18:53:36 UTC) #3
jam
these functions seemed generic, which is why they weren't on DownloadManagerDelegate. have you considered adding ...
7 years, 11 months ago (2013-01-18 21:29:28 UTC) #4
hashimoto
On 2013/01/18 21:29:28, John Abd-El-Malek wrote: > these functions seemed generic, which is why they ...
7 years, 11 months ago (2013-01-19 03:41:54 UTC) #5
jam
On 2013/01/19 03:41:54, hashimoto wrote: > On 2013/01/18 21:29:28, John Abd-El-Malek wrote: > > these ...
7 years, 11 months ago (2013-01-20 21:21:04 UTC) #6
hashimoto
On 2013/01/20 21:21:04, John Abd-El-Malek wrote: > On 2013/01/19 03:41:54, hashimoto wrote: > > On ...
7 years, 11 months ago (2013-01-21 04:44:20 UTC) #7
jam
On Sun, Jan 20, 2013 at 8:44 PM, <hashimoto@chromium.org> wrote: > On 2013/01/20 21:21:04, John ...
7 years, 11 months ago (2013-01-21 07:05:38 UTC) #8
hashimoto
https://codereview.chromium.org/11941015/diff/2001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): https://codereview.chromium.org/11941015/diff/2001/chrome/browser/download/download_browsertest.cc#newcode1466 chrome/browser/download/download_browsertest.cc:1466: DownloadManagerForBrowser(browser())->MockDownloadOpenForTesting(); On 2013/01/18 18:53:37, rdsmith wrote: > The better ...
7 years, 11 months ago (2013-01-21 10:54:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/11941015/2001
7 years, 11 months ago (2013-01-21 10:54:36 UTC) #10
commit-bot: I haz the power
Presubmit check for 11941015-2001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-21 10:54:46 UTC) #11
hashimoto
TBR-ing joth@chromium.org for deletion of two empty methods of AwContentBrowserClient
7 years, 11 months ago (2013-01-21 10:59:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/11941015/2001
7 years, 11 months ago (2013-01-21 10:59:58 UTC) #13
commit-bot: I haz the power
7 years, 11 months ago (2013-01-21 15:32:16 UTC) #14
Message was sent while issue was closed.
Change committed as 177920

Powered by Google App Engine
This is Rietveld 408576698