Index: remoting/host/host_key_pair.cc |
diff --git a/remoting/host/host_key_pair.cc b/remoting/host/host_key_pair.cc |
index f2ec69872f8ac94a2d0c83096fe85cd438a5d180..cabac20945b02bcfc81cd7f8d4045e899d07464f 100644 |
--- a/remoting/host/host_key_pair.cc |
+++ b/remoting/host/host_key_pair.cc |
@@ -55,7 +55,9 @@ void HostKeyPair::Save(MutableHostConfig* host_config) { |
DCHECK(key_.get() != NULL); |
host_config->Update( |
- NewRunnableMethod(this, &HostKeyPair::DoSave, host_config)); |
+ NewRunnableMethod(this, |
+ &HostKeyPair::DoSave, |
+ make_scoped_refptr(host_config))); |
} |
void HostKeyPair::DoSave(MutableHostConfig* host_config) const { |