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

Issue 230163002: Use DownloadManager to initiate downloads from PluginInstaller. (Closed)

Created:
6 years, 8 months ago by asanka
Modified:
6 years, 8 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, stuartmorgan+watch_chromium.org, jam
Visibility:
Public.

Description

Use DownloadManager to initiate downloads from PluginInstaller. PluginInstaller was invoking ResourceDispatcherHost::BeginDownload directly to initiate downloads. This CL changes the initiation path to use DownloadManager instead. DM already lives on the UI thread and implements the logic needed to construct the URLRequest for the download and invoke RDH on the IO thread. Using DownloadManager for initiating downloads from the UI thread reduces code duplication and decreases the callers of ResourceDispatcherHost::BeginDownload. This removes one more obstacle in the way of decoupling programmatic downloads from ResourceDispatcherHost. BUG=7648 BUG=225901 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265754

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -108 lines) Patch
M chrome/browser/plugins/plugin_installer.h View 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_installer.cc View 3 chunks +19 lines, -65 lines 0 comments Download
M chrome/browser/plugins/plugin_installer_unittest.cc View 1 1 chunk +191 lines, -43 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
asanka
bauerb: Could you take a look? The plugin_installer_unittests weren't referenced in a gypi file and ...
6 years, 8 months ago (2014-04-09 18:00:06 UTC) #1
Bernhard Bauer
https://codereview.chromium.org/230163002/diff/1/chrome/browser/plugins/plugin_installer_unittest.cc File chrome/browser/plugins/plugin_installer_unittest.cc (left): https://codereview.chromium.org/230163002/diff/1/chrome/browser/plugins/plugin_installer_unittest.cc#oldcode25 chrome/browser/plugins/plugin_installer_unittest.cc:25: TEST(PluginInstallerTest, SecurityStatus) { I'd be interested in getting this ...
6 years, 8 months ago (2014-04-10 10:26:40 UTC) #2
asanka
Sorry about the delay. https://codereview.chromium.org/230163002/diff/1/chrome/browser/plugins/plugin_installer_unittest.cc File chrome/browser/plugins/plugin_installer_unittest.cc (left): https://codereview.chromium.org/230163002/diff/1/chrome/browser/plugins/plugin_installer_unittest.cc#oldcode25 chrome/browser/plugins/plugin_installer_unittest.cc:25: TEST(PluginInstallerTest, SecurityStatus) { On 2014/04/10 ...
6 years, 8 months ago (2014-04-18 18:07:49 UTC) #3
Bernhard Bauer
LGTM https://codereview.chromium.org/230163002/diff/1/chrome/browser/plugins/plugin_installer_unittest.cc File chrome/browser/plugins/plugin_installer_unittest.cc (left): https://codereview.chromium.org/230163002/diff/1/chrome/browser/plugins/plugin_installer_unittest.cc#oldcode25 chrome/browser/plugins/plugin_installer_unittest.cc:25: TEST(PluginInstallerTest, SecurityStatus) { On 2014/04/18 18:07:49, asanka wrote: ...
6 years, 8 months ago (2014-04-23 08:33:25 UTC) #4
asanka
The CQ bit was checked by asanka@chromium.org
6 years, 8 months ago (2014-04-23 20:10:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/230163002/20001
6 years, 8 months ago (2014-04-23 20:12:16 UTC) #6
commit-bot: I haz the power
6 years, 8 months ago (2014-04-23 22:15:16 UTC) #7
Message was sent while issue was closed.
Change committed as 265754

Powered by Google App Engine
This is Rietveld 408576698