|
Componentize component_updater: Replace content::BrowserThread usage with task runners
This patch strips out usage of specific threads defined in content/.
- Replaces FILE thread in BackgroundDownloaderWin with a SingleThreadTaskRunner backed by the FILE thread.
- Replaces a bunch of DCHECK(UI thread) with use of base::ThreadChecker (which just checks that it's all on the constructor thread).
- Replaces Posts to the UI thread with a post to the current message loop used in the constructor.
BUG= 371463
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284960
Total comments: 20
Total comments: 15
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+228 lines, -120 lines) |
Patch |
 |
M |
chrome/browser/component_updater/background_downloader_win.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+24 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/background_downloader_win.cc
|
View
|
1
2
3
4
5
|
9 chunks |
+33 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/cld_component_installer.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/component_patcher.cc
|
View
|
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/component_updater_configurator.h
|
View
|
1
2
3
4
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/component_updater_configurator.cc
|
View
|
1
|
3 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/component_updater_service.h
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/component_updater_service.cc
|
View
|
1
2
3
4
5
6
7
8
|
23 chunks |
+36 lines, -28 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/crx_downloader.h
|
View
|
1
2
3
4
|
4 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/crx_downloader.cc
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/default_component_installer.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/default_component_installer.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+19 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/test/crx_downloader_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/test/test_configurator.h
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/test/test_configurator.cc
|
View
|
1
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/update_checker.cc
|
View
|
1
|
4 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/url_fetcher_downloader.h
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/component_updater/url_fetcher_downloader.cc
|
View
|
1
2
3
|
4 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
Total messages: 26 (0 generated)
|