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

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

Issue 19866002: GCP2.0 Device: Receiving printjobs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@confirmation
Patch Set: Unretained -> WeakPtr. Printjob -> PrintJob. Created 7 years, 5 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 8a6653f35bd11bdbd9d6d513174301ed1273eb1e..a582e36142a3e5f21c4f91b89c283c1b29010435 100644
--- a/cloud_print/gcp20/prototype/dns_sd_server.cc
+++ b/cloud_print/gcp20/prototype/dns_sd_server.cc
@@ -280,6 +280,7 @@ void DnsSdServer::SendAnnouncement(uint32 ttl) {
base::TimeDelta::FromSeconds(full_ttl_);
// Schedule next announcement.
+ // TODO(maksymb): Replace with weakptr.
base::MessageLoop::current()->PostDelayedTask(
Vitaly Buka (NO REVIEWS) 2013/07/22 23:46:02 ???
maksymb 2013/07/23 00:40:38 Sorry, I've forgot to delete this TODO after resol
FROM_HERE,
base::Bind(&DnsSdServer::Update, AsWeakPtr()),

Powered by Google App Engine
This is Rietveld 408576698