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

Unified Diff: cloud_print/gcp20/prototype/dns_sd_server.cc

Issue 18346006: Update OS X to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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
Index: cloud_print/gcp20/prototype/dns_sd_server.cc
diff --git a/cloud_print/gcp20/prototype/dns_sd_server.cc b/cloud_print/gcp20/prototype/dns_sd_server.cc
index 2d2716b63dd4cd7f766843649a00c2fcb0bc9969..60c955e09e8ab29c752e824b816094112507a87a 100644
--- a/cloud_print/gcp20/prototype/dns_sd_server.cc
+++ b/cloud_print/gcp20/prototype/dns_sd_server.cc
@@ -241,10 +241,12 @@ void DnsSdServer::DoLoop(int rv) {
// TODO(maksymb): Check what happened if buffer will be overflowed
do {
if (rv > 0)
- ProcessMessage(rv, recv_buf_);
- rv = socket_->RecvFrom(recv_buf_, recv_buf_->size(), &recv_address_,
- base::Bind(&DnsSdServer::DoLoop,
- base::Unretained(this)));
+ ProcessMessage(rv, recv_buf_.get());
+ rv = socket_->RecvFrom(
+ recv_buf_.get(),
+ recv_buf_->size(),
+ &recv_address_,
+ base::Bind(&DnsSdServer::DoLoop, base::Unretained(this)));
} while (rv > 0);
// TODO(maksymb): Add handler for errors
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | content/browser/indexed_db/indexed_db_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698