|
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
Total comments: 5
Total comments: 2
|
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
|
Total messages: 38 (0 generated)
|