Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1190)

Unified Diff: remoting/host/host_key_pair.cc

Issue 3821005: Make sure to use scoped_refptr for refcounted params in audio/video/remoting (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/omx_video_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « media/filters/omx_video_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698