| Index: chrome/browser/sync/notifier/chrome_invalidation_client.cc
|
| ===================================================================
|
| --- chrome/browser/sync/notifier/chrome_invalidation_client.cc (revision 71618)
|
| +++ chrome/browser/sync/notifier/chrome_invalidation_client.cc (working copy)
|
| @@ -126,13 +126,18 @@
|
| VLOG(1) << "Invalidate: " << InvalidationToString(invalidation);
|
| syncable::ModelType model_type;
|
| if (ObjectIdToRealModelType(invalidation.object_id(), &model_type)) {
|
| + std::string payload;
|
| + // payload() CHECK()'s has_payload(), so we must check it ourselves first.
|
| + if (invalidation.has_payload())
|
| + payload = invalidation.payload();
|
| +
|
| // TODO(akalin): This is a hack to make new sync data types work
|
| // with server-issued notifications. Remove this when it's not
|
| // needed anymore.
|
| if (model_type == syncable::UNSPECIFIED) {
|
| listener_->OnInvalidateAll();
|
| } else {
|
| - listener_->OnInvalidate(model_type);
|
| + listener_->OnInvalidate(model_type, payload);
|
| }
|
| } else {
|
| LOG(WARNING) << "Could not get invalidation model type; "
|
|
|
| Property changes on: chrome/browser/sync/notifier/chrome_invalidation_client.cc
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|