Commit 35fea17b authored by John Abd-El-Malek's avatar John Abd-El-Malek Committed by Commit Bot

Remove some dead code in UtilityProcessHost

Change-Id: I8c18f3a248de8b1176171f0a5ef800666a9583f7
Reviewed-on: https://chromium-review.googlesource.com/1071885Reviewed-by: default avatarKen Rockot <rockot@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561888}
parent 5be4886f
......@@ -374,22 +374,4 @@ void UtilityProcessHost::OnProcessCrashed(int exit_code) {
client_, exit_code));
}
void UtilityProcessHost::NotifyAndDelete(int error_code) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::BindOnce(&UtilityProcessHost::NotifyLaunchFailedAndDelete,
weak_ptr_factory_.GetWeakPtr(), error_code));
}
// static
void UtilityProcessHost::NotifyLaunchFailedAndDelete(
base::WeakPtr<UtilityProcessHost> host,
int error_code) {
if (!host)
return;
host->OnProcessLaunchFailed(error_code);
delete host.get();
}
} // namespace content
......@@ -113,14 +113,6 @@ class CONTENT_EXPORT UtilityProcessHost
void OnProcessLaunchFailed(int error_code) override;
void OnProcessCrashed(int exit_code) override;
// Cleans up |this| as a result of a failed Start().
void NotifyAndDelete(int error_code);
// Notifies the client that the launch failed and deletes |host|.
static void NotifyLaunchFailedAndDelete(
base::WeakPtr<UtilityProcessHost> host,
int error_code);
// Pointer to our client interface used for progress notifications.
scoped_refptr<UtilityProcessHostClient> client_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment