Implement download for Browser Actions

Desktop / Chromium - Lei Tian [google.com] - 11 September 2017 18:37 EDT

This CL implements the "Download page" option in Browser Actions menu. Since Browser Actions only has the url, it uses OfflinePageBridge.savePageLater() which now only supports download webpages.

BUG=754807

Change-Id: I9780349a195ed3d8d18fd86284d1af52c44fd971 Reviewed-on: https://chromium-review.googlesource.com/622216

6091292 Implement download for Browser Actions
.../BrowserActionsContextMenuHelper.java | 31 +++++++++++-----
.../BrowserActionsContextMenuItemDelegate.java | 12 ++++++-
.../browser/offlinepages/OfflinePageBridge.java | 1 +
.../browseractions/BrowserActionActivityTest.java | 42 ++++++++++++++++------
.../core/client_namespace_constants.cc | 1 +
.../core/client_namespace_constants.h | 1 +
.../offline_pages/core/client_policy_controller.cc | 8 +++++
tools/metrics/histograms/histograms.xml | 1 +
8 files changed, 77 insertions(+), 20 deletions(-)

Upstream: git.chromium.org


  • Share