Index: chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc |
diff --git a/chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc b/chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc |
index 38bb6015efc851f563ca2bece0c69110a7fda174..bf052da5421842d46e3a77f03ce83480db85e82e 100644 |
--- a/chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc |
+++ b/chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc |
@@ -15,7 +15,10 @@ using chrome_cleaner::mojom::PromptAcceptance; |
using chrome_cleaner::mojom::UwSPtr; |
ChromePromptImpl::ChromePromptImpl(ChromePromptRequest request) |
- : binding_(this, std::move(request)) {} |
+ : binding_(this, std::move(request)) { |
+ binding_.set_connection_error_handler(base::Bind( |
+ &ChromePromptImpl::OnConnectionClosed, base::RetainedRef(this))); |
+} |
ChromePromptImpl::~ChromePromptImpl() {} |
@@ -28,4 +31,15 @@ void ChromePromptImpl::PromptUser( |
callback.Run(PromptAcceptance::DENIED); |
} |
+void ChromePromptImpl::OnConnectionClosed() { |
+ // Placeholder. This should handle cases when the reporter process is |
+ // disconnected (e.g. due to a crash) and the prompt dialog is being shown |
+ // to the user. |
+} |
+ |
+void ChromePromptImpl::OnConnectionError(const std::string& message) { |
+ // Placeholder. This should handle cases when the reporter process sends |
+ // a bad message and the prompt dialog is being shown to the user. |
+} |
+ |
} // namespace safe_browsing |