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

Unified Diff: sync/notifier/invalidation_util.cc

Issue 10837214: Refactor ModelTypePayloadMap and ObjectIdPayloadMap to StateMaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 years, 4 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 | « sync/notifier/invalidation_util.h ('k') | sync/notifier/mock_sync_notifier_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/invalidation_util.cc
diff --git a/sync/notifier/invalidation_util.cc b/sync/notifier/invalidation_util.cc
index b10e2b498b2d29d204c4a82ee84ed4e6a29c1b90..7307292d4c7044c8be392783cefeef55a05f21a2 100644
--- a/sync/notifier/invalidation_util.cc
+++ b/sync/notifier/invalidation_util.cc
@@ -4,11 +4,18 @@
#include "sync/notifier/invalidation_util.h"
+#include <ostream>
#include <sstream>
#include "google/cacheinvalidation/include/types.h"
#include "google/cacheinvalidation/types.pb.h"
+namespace invalidation {
+void PrintTo(const invalidation::ObjectId& id, std::ostream* os) {
+ *os << syncer::ObjectIdToString(id);
+}
+} // namespace invalidation
+
namespace syncer {
bool ObjectIdLessThan::operator()(const invalidation::ObjectId& lhs,
« no previous file with comments | « sync/notifier/invalidation_util.h ('k') | sync/notifier/mock_sync_notifier_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698