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

Unified Diff: jingle/notifier/listener/notification_defines.cc

Issue 6881042: [Sync] Fix race condition in P2PNotifier with sending notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head, add unit tests Created 9 years, 8 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: jingle/notifier/listener/notification_defines.cc
diff --git a/jingle/notifier/listener/notification_defines.cc b/jingle/notifier/listener/notification_defines.cc
new file mode 100644
index 0000000000000000000000000000000000000000..61b099a3a2bd9db11f2fedaf8d2adce66c0cac33
--- /dev/null
+++ b/jingle/notifier/listener/notification_defines.cc
@@ -0,0 +1,13 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "jingle/notifier/listener/notification_defines.h"
+
+namespace notifier {
+
+std::string Notification::ToString() const {
+ return "{ channel: \"" + channel + "\", data: \"" + data + "\" }";
+}
+
+} // namespace notifier

Powered by Google App Engine
This is Rietveld 408576698