|
Domain Reliability: Don't crash on shutdown with uploads pending
This fixes a couple of bugs:
1. Makes sure the ChromeNetworkDelegate can't call in to a destroyed DomainReliabilityMonitor by moving ownership of the Monitor from ProfileImplIOData to ChromeNetworkDelegate.
2. Makes sure the uploader doesn't leave URL requests around once they're all supposed to be gone by adding a separate "shutdown" step that deletes existing requests and prohibits new ones.
BUG= 644858
Committed: https://crrev.com/127604ea9f06489c24bf6ad47d5ea62b266d45b4
Cr-Commit-Position: refs/heads/master@{#439520}
Total comments: 6
Total comments: 2
Total comments: 32
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+306 lines, -27 lines) |
Patch |
 |
M |
chrome/browser/browsing_data/browsing_data_remover_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/domain_reliability/browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+101 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/chrome_network_delegate.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/chrome_network_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_impl_io_data.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_impl_io_data.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+20 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/test/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/domain_reliability/dispatcher.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/domain_reliability/dispatcher.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/domain_reliability/monitor.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/domain_reliability/monitor.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/domain_reliability/monitor_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/domain_reliability/service.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/domain_reliability/service.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/domain_reliability/uploader.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/domain_reliability/uploader.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
8 chunks |
+21 lines, -8 lines |
0 comments
|
Download
|
 |
M |
components/domain_reliability/uploader_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
12 chunks |
+49 lines, -2 lines |
0 comments
|
Download
|
Total messages: 74 (50 generated)
|