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

Unified Diff: chrome/browser/sync/notifier/chrome_invalidation_client.cc

Issue 6182004: [SYNC] Refactor SyncSourceInfo and add support in chrome invalidation client ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Comments. Also removed unnecessary LOG(WARNING). Created 9 years, 11 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: chrome/browser/sync/notifier/chrome_invalidation_client.cc
===================================================================
--- chrome/browser/sync/notifier/chrome_invalidation_client.cc (revision 71061)
+++ chrome/browser/sync/notifier/chrome_invalidation_client.cc (working copy)
@@ -126,7 +126,11 @@
VLOG(1) << "Invalidate: " << InvalidationToString(invalidation);
syncable::ModelType model_type;
if (ObjectIdToRealModelType(invalidation.object_id(), &model_type)) {
- listener_->OnInvalidate(model_type);
+ if (invalidation.has_payload()) {
akalin 2011/01/12 09:55:19 No need for the has_payload() check, assuming the
Nicolas Zea 2011/01/13 19:17:30 The has_payload is method isn't a protobuf defined
akalin 2011/01/13 19:47:41 Ah, I forgot about that. How about: std::string
Nicolas Zea 2011/01/18 06:07:23 Done.
+ listener_->OnInvalidate(model_type, invalidation.payload());
+ } else {
+ listener_->OnInvalidate(model_type, std::string(""));
+ }
} else {
LOG(WARNING) << "Could not get invalidation model type; "
<< "invalidating everything";

Powered by Google App Engine
This is Rietveld 408576698