|
Don't deref stale AutofillMetrics pointer in AutofillCCInfoBarDelegate
It was only by luck that this used to work. After a recent refactoring, the destruction order changed and the AutofillMetrics object no longer outlasts the infobar. AutofillMetrics doesn't need to be an instance object; make the relevant function a static instead.
TBR=sgurun@chromium.org
BUG= 439551, 439620
Committed: https://crrev.com/19ece1e4af5207b92c2152395dfccca1683504e1
Cr-Commit-Position: refs/heads/master@{#307128}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+43 lines, -82 lines) |
Patch |
 |
M |
android_webview/native/aw_autofill_client.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
android_webview/native/aw_autofill_client.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/autofill/autofill_cc_infobar_delegate.h
|
View
|
1
|
2 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/autofill/autofill_cc_infobar_delegate.cc
|
View
|
1
|
2 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/autofill/autofill_cc_infobar_delegate_unittest.cc
|
View
|
1
|
4 chunks |
+30 lines, -51 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/autofill/chrome_autofill_client.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/autofill/chrome_autofill_client.cc
|
View
|
1
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_client.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_manager.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_metrics.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_metrics.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/test_autofill_client.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/test_autofill_client.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 10 (2 generated)
|