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

Issue 226023003: Create CrxInstaller directly in WebstoreInstaller (Closed)

Created:
6 years, 8 months ago by msimonides
Modified:
6 years, 8 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, Devlin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Create CrxInstaller directly in WebstoreInstaller The WebstoreInstaller needs a way to keep track of extensions being downloaded and installed. The installation is handled by CrxInstaller but when it used to be created automatically by the ChromeDownloadManagerDelegate, the WebstoreInstaller had little control over it and needed the CrxInstaller to keep the original_download_url as sort of an identifier. With this change the WebstoreInstaller creates the CrxInstaller itself and keeps a pointer to it so there is no more need for CrxInstaller::original_download_url(). This is also more robust because URLs are not unique identifiers (there could be two installations run simultaneously for one download URL which would have led to a crash in the old code). BUG=360487 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265615

Patch Set 1 #

Total comments: 5

Patch Set 2 : Create the CrxInstaller directly in WebstoreInstaller. #

Total comments: 2

Patch Set 3 : Cleanup #

Patch Set 4 : Remove the download_url argument from ExtensionService::UpdateExtension. #

Patch Set 5 : Fix tests compilation (the removed argument to UpdateExtension). #

Patch Set 6 : Fix crashes caused by wrong order of operations. #

Patch Set 7 : Rebase #

Patch Set 8 : Android linking fix. #

Patch Set 9 : Android compilation fix (again). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -68 lines) Patch
M chrome/browser/apps/ephemeral_app_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/download/download_crx_util.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/download/download_crx_util.cc View 1 2 3 chunks +16 lines, -13 lines 0 comments Download
M chrome/browser/download/download_crx_util_android.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer.h View 1 2 3 4 5 6 3 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/test_extension_service.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/test_extension_service.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/updater/extension_updater.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater.cc View 1 2 3 4 5 6 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater_unittest.cc View 1 2 3 4 5 6 7 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 2 3 4 5 6 5 chunks +44 lines, -14 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor_browsertest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (0 generated)
msimonides
6 years, 8 months ago (2014-04-04 14:26:16 UTC) #1
not at google - send to devlin
mind filing a bug containing the detail you give in the CL description and referencing ...
6 years, 8 months ago (2014-04-04 15:39:29 UTC) #2
msimonides
https://codereview.chromium.org/226023003/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (left): https://codereview.chromium.org/226023003/diff/1/chrome/browser/extensions/extension_service.cc#oldcode627 chrome/browser/extensions/extension_service.cc:627: installer->set_download_url(download_url); On 2014/04/04 15:39:30, kalman wrote: > why not ...
6 years, 8 months ago (2014-04-07 07:23:37 UTC) #3
asanka
/download/ lgtm https://codereview.chromium.org/226023003/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/226023003/diff/1/chrome/browser/extensions/extension_service.cc#newcode547 chrome/browser/extensions/extension_service.cc:547: const GURL& download_url, Nit: download_url is unused.
6 years, 8 months ago (2014-04-07 15:26:00 UTC) #4
not at google - send to devlin
+Antony for a second opinion. You likely know this code much better than I do ...
6 years, 8 months ago (2014-04-07 16:51:40 UTC) #5
msimonides
On 2014/04/07 16:51:40, kalman wrote: > +Antony for a second opinion. You likely know this ...
6 years, 8 months ago (2014-04-08 08:14:17 UTC) #6
asargent_no_longer_on_chrome
Similar to kalman, I'm a little concerned about how we're managing the download ID's here. ...
6 years, 8 months ago (2014-04-08 23:55:19 UTC) #7
msimonides
On 2014/04/08 23:55:19, Antony Sargent wrote: > Similar to kalman, I'm a little concerned about ...
6 years, 8 months ago (2014-04-09 07:37:49 UTC) #8
msimonides
On 2014/04/09 07:37:49, msimonides wrote: > IMO a better approach would be the one I've ...
6 years, 8 months ago (2014-04-09 11:56:07 UTC) #9
msimonides
ping! :)
6 years, 8 months ago (2014-04-15 08:10:55 UTC) #10
asargent_no_longer_on_chrome
Apologies for the review latency! I was on vacation for several days. I like the ...
6 years, 8 months ago (2014-04-16 00:15:50 UTC) #11
msimonides
https://codereview.chromium.org/226023003/diff/20001/chrome/browser/extensions/crx_installer.h File chrome/browser/extensions/crx_installer.h (right): https://codereview.chromium.org/226023003/diff/20001/chrome/browser/extensions/crx_installer.h#newcode306 chrome/browser/extensions/crx_installer.h:306: uint32 download_id_; On 2014/04/16 00:15:51, Antony Sargent wrote: > ...
6 years, 8 months ago (2014-04-16 08:42:04 UTC) #12
asargent_no_longer_on_chrome
lgtm
6 years, 8 months ago (2014-04-16 18:15:03 UTC) #13
msimonides
The CQ bit was checked by msimonides@opera.com
6 years, 8 months ago (2014-04-17 06:03:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/226023003/60001
6 years, 8 months ago (2014-04-17 06:04:15 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-17 07:04:38 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-17 07:04:39 UTC) #17
msimonides
The CQ bit was checked by msimonides@opera.com
6 years, 8 months ago (2014-04-17 11:20:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/226023003/80001
6 years, 8 months ago (2014-04-17 11:20:43 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-17 12:09:11 UTC) #20
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=62005
6 years, 8 months ago (2014-04-17 12:09:12 UTC) #21
msimonides
Need review for a test update in chrome/browser/performance_monitor
6 years, 8 months ago (2014-04-17 12:13:07 UTC) #22
Yoyo Zhou
On 2014/04/17 12:13:07, msimonides wrote: > Need review for a test update in chrome/browser/performance_monitor performance_monitor_browsertest ...
6 years, 8 months ago (2014-04-17 16:09:12 UTC) #23
msimonides
The CQ bit was checked by msimonides@opera.com
6 years, 8 months ago (2014-04-22 06:22:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/226023003/80001
6 years, 8 months ago (2014-04-22 06:22:33 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 07:29:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-22 07:29:48 UTC) #27
msimonides
The CQ bit was checked by msimonides@opera.com
6 years, 8 months ago (2014-04-22 09:17:18 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/226023003/100001
6 years, 8 months ago (2014-04-22 09:17:24 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 10:10:04 UTC) #30
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=134358
6 years, 8 months ago (2014-04-22 10:10:05 UTC) #31
msimonides
The CQ bit was checked by msimonides@opera.com
6 years, 8 months ago (2014-04-23 09:28:03 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/226023003/140001
6 years, 8 months ago (2014-04-23 09:28:13 UTC) #33
msimonides
The CQ bit was checked by msimonides@opera.com
6 years, 8 months ago (2014-04-23 09:54:00 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/226023003/160001
6 years, 8 months ago (2014-04-23 09:54:21 UTC) #35
commit-bot: I haz the power
Change committed as 265615
6 years, 8 months ago (2014-04-23 12:03:37 UTC) #36
Devlin
On 2014/04/23 12:03:37, I haz the power (commit-bot) wrote: > Change committed as 265615 Were ...
6 years, 8 months ago (2014-04-24 19:46:29 UTC) #37
msimonides
6 years, 8 months ago (2014-04-25 05:53:57 UTC) #38
Message was sent while issue was closed.
On 2014/04/24 19:46:29, D Cronin wrote:
> On 2014/04/23 12:03:37, I haz the power (commit-bot) wrote:
> > Change committed as 265615
> 
> Were the logs in CrxInstaller intentionally left in?  If not, could you remove
> them, and if so, could you please document the reason?

Oops, sorry about that. Removing them in
https://codereview.chromium.org/256593006/

Powered by Google App Engine
This is Rietveld 408576698