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

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed)

Created:
5 years, 2 months ago by asargent_no_longer_on_chrome
Modified:
5 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add extensions code to use common updater in components/update_client/ This is another piece of work towards implementing differential extensions update and share autoupdate code with the chrome components system. It adds code to the extensions/browser directory that makes use of the common autoupdate code via the update_client::UpdateClient class to send update checks to the server, download a full .crx or differential update, and hand back an unpacked directory with the contents of the new extension version. This CL does not yet add any code in chrome/ that actually uses these new capabilities; that will be in a forthcoming CL. BUG=490418 Committed: https://crrev.com/631a99a61cbe3e7e03e372b3d37c6a37fa700392 Cr-Commit-Position: refs/heads/master@{#354370}

Patch Set 1 : ready for review #

Total comments: 6

Patch Set 2 : responded to review comments #

Total comments: 41

Patch Set 3 : add version_info to buildfiles, review feedback changes #

Patch Set 4 : use ConfiguratorImpl, change TestExtensionService, etc #

Total comments: 6

Patch Set 5 : changed to set_enable_alt_source_url, use ternary operator #

Patch Set 6 : merged latest origin/master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+944 lines, -334 lines) Patch
M chrome/browser/extensions/chrome_extensions_browser_client.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 1 2 3 4 5 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.cc View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/extensions/updater/chrome_update_client_config.h View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/extensions/updater/chrome_update_client_config.cc View 1 2 3 4 1 chunk +89 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/component_updater/configurator_impl.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M components/component_updater/configurator_impl.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/extension_system.h View 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/browser/extensions_browser_client.h View 1 2 3 4 5 3 chunks +9 lines, -0 lines 0 comments Download
M extensions/browser/extensions_browser_client.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M extensions/browser/mock_extension_system.h View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/mock_extension_system.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/test_extensions_browser_client.h View 1 2 3 4 5 4 chunks +14 lines, -0 lines 0 comments Download
M extensions/browser/test_extensions_browser_client.cc View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
A extensions/browser/updater/update_client_config.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A extensions/browser/updater/update_client_config.cc View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A extensions/browser/updater/update_data_provider.h View 1 chunk +69 lines, -0 lines 0 comments Download
A extensions/browser/updater/update_data_provider.cc View 1 2 1 chunk +72 lines, -0 lines 0 comments Download
A extensions/browser/updater/update_install_shim.h View 1 1 chunk +76 lines, -0 lines 0 comments Download
A extensions/browser/updater/update_install_shim.cc View 1 chunk +83 lines, -0 lines 0 comments Download
M extensions/browser/updater/update_service.h View 1 2 3 1 chunk +23 lines, -32 lines 0 comments Download
M extensions/browser/updater/update_service.cc View 1 2 3 1 chunk +39 lines, -57 lines 0 comments Download
D extensions/browser/updater/update_service_browsertest.cc View 1 2 3 4 5 1 chunk +0 lines, -218 lines 0 comments Download
M extensions/browser/updater/update_service_factory.cc View 3 chunks +4 lines, -3 lines 0 comments Download
A extensions/browser/updater/update_service_unittest.cc View 1 2 3 1 chunk +248 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/extensions.gypi View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/extensions_tests.gypi View 2 chunks +1 line, -1 line 0 comments Download
M extensions/shell/browser/shell_browser_main_parts.cc View 2 chunks +0 lines, -18 lines 0 comments Download
M extensions/shell/browser/shell_extension_system.h View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_extension_system.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/shell/common/switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/shell/common/switches.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
asargent_no_longer_on_chrome
rockot: please review. The most substantive changes are the following files; you might want to ...
5 years, 2 months ago (2015-09-24 00:16:26 UTC) #4
Ken Rockot(use gerrit already)
lgtm modulo a few nits https://codereview.chromium.org/1362043005/diff/40001/chrome/browser/extensions/chrome_extensions_browser_client.h File chrome/browser/extensions/chrome_extensions_browser_client.h (right): https://codereview.chromium.org/1362043005/diff/40001/chrome/browser/extensions/chrome_extensions_browser_client.h#newcode9 chrome/browser/extensions/chrome_extensions_browser_client.h:9: #include <string> I would ...
5 years, 2 months ago (2015-09-25 16:19:19 UTC) #5
asargent_no_longer_on_chrome
responded to review comments sorin: ping? https://codereview.chromium.org/1362043005/diff/40001/chrome/browser/extensions/chrome_extensions_browser_client.h File chrome/browser/extensions/chrome_extensions_browser_client.h (right): https://codereview.chromium.org/1362043005/diff/40001/chrome/browser/extensions/chrome_extensions_browser_client.h#newcode9 chrome/browser/extensions/chrome_extensions_browser_client.h:9: #include <string> On ...
5 years, 2 months ago (2015-09-29 22:59:22 UTC) #7
Sorin Jianu
Thank you Antony. I am impressed by this CL. Most of the comments below are ...
5 years, 2 months ago (2015-10-02 00:05:10 UTC) #9
asargent_no_longer_on_chrome
sorin: please take another look https://codereview.chromium.org/1362043005/diff/80001/chrome/browser/extensions/chrome_extensions_browser_client.h File chrome/browser/extensions/chrome_extensions_browser_client.h (right): https://codereview.chromium.org/1362043005/diff/80001/chrome/browser/extensions/chrome_extensions_browser_client.h#newcode14 chrome/browser/extensions/chrome_extensions_browser_client.h:14: #include "base/memory/scoped_ptr.h" On 2015/10/02 ...
5 years, 2 months ago (2015-10-06 21:31:18 UTC) #11
Sorin Jianu
Very nice, thank you Antony. https://codereview.chromium.org/1362043005/diff/80001/chrome/browser/extensions/chrome_extensions_browser_client.h File chrome/browser/extensions/chrome_extensions_browser_client.h (right): https://codereview.chromium.org/1362043005/diff/80001/chrome/browser/extensions/chrome_extensions_browser_client.h#newcode114 chrome/browser/extensions/chrome_extensions_browser_client.h:114: scoped_refptr<update_client::UpdateClient> CreateUpdateClient( On 2015/10/06 ...
5 years, 2 months ago (2015-10-08 22:57:55 UTC) #12
asargent_no_longer_on_chrome
https://codereview.chromium.org/1362043005/diff/80001/extensions/browser/extensions_browser_client.cc File extensions/browser/extensions_browser_client.cc (right): https://codereview.chromium.org/1362043005/diff/80001/extensions/browser/extensions_browser_client.cc#newcode23 extensions/browser/extensions_browser_client.cc:23: return scoped_refptr<update_client::UpdateClient>(nullptr); On 2015/10/08 22:57:54, Sorin Jianu wrote: > ...
5 years, 2 months ago (2015-10-14 17:04:31 UTC) #13
Sorin Jianu
Thank you Antony, there might be a bug, please see the comments below. https://codereview.chromium.org/1362043005/diff/80001/extensions/browser/extensions_browser_client.cc File ...
5 years, 2 months ago (2015-10-14 20:37:09 UTC) #14
asargent_no_longer_on_chrome
https://codereview.chromium.org/1362043005/diff/140001/components/component_updater/configurator_impl.cc File components/component_updater/configurator_impl.cc (right): https://codereview.chromium.org/1362043005/diff/140001/components/component_updater/configurator_impl.cc#newcode197 components/component_updater/configurator_impl.cc:197: fallback_to_alt_source_url_enabled_ = require_secure_transport; On 2015/10/14 20:37:09, Sorin Jianu wrote: ...
5 years, 2 months ago (2015-10-15 20:16:03 UTC) #15
Sorin Jianu
lgtm Nice, thank you Antony!
5 years, 2 months ago (2015-10-15 20:21:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1362043005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1362043005/180001
5 years, 2 months ago (2015-10-15 20:53:35 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:180001)
5 years, 2 months ago (2015-10-15 21:51:57 UTC) #20
commit-bot: I haz the power
5 years, 2 months ago (2015-10-15 21:52:55 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/631a99a61cbe3e7e03e372b3d37c6a37fa700392
Cr-Commit-Position: refs/heads/master@{#354370}

Powered by Google App Engine
This is Rietveld 408576698