| Index: chrome/browser/safe_browsing/srt_global_error_win.cc
|
| diff --git a/chrome/browser/safe_browsing/srt_global_error_win.cc b/chrome/browser/safe_browsing/srt_global_error_win.cc
|
| index 79a851a7b63c17a6940ed8f7481cd2ff8cbadcf8..b554510da7146ef7bc04662c406086a57d53a2aa 100644
|
| --- a/chrome/browser/safe_browsing/srt_global_error_win.cc
|
| +++ b/chrome/browser/safe_browsing/srt_global_error_win.cc
|
| @@ -205,8 +205,8 @@ void SRTGlobalError::MaybeExecuteSRT() {
|
| return;
|
| }
|
| // At this point, this object owns itself, since ownership has been taken back
|
| - // from the global_error_service_ in the call to RemoveGlobalError. This means
|
| - // that it is safe to use base::Unretained here.
|
| + // from the global_error_service_ in the call to OnUserInteractionStarted.
|
| + // This means that it is safe to use base::Unretained here.
|
| BrowserThread::PostBlockingPoolTask(
|
| FROM_HERE,
|
| base::Bind(
|
| @@ -244,7 +244,7 @@ void SRTGlobalError::OnUserinteractionStarted(
|
| RecordSRTPromptHistogram(histogram_value);
|
| interacted_ = true;
|
| if (global_error_service_) {
|
| - global_error_service_->RemoveGlobalError(this);
|
| + global_error_service_->RemoveOwnedGlobalError(this).release();
|
| global_error_service_ = nullptr;
|
| }
|
| }
|
|
|