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

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

Issue 6270006: Revert 72685 - [SYNC] Refactor SyncSourceInfo and add support in chrome inval... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 72686)
+++ chrome/browser/sync/notifier/chrome_invalidation_client.cc (working copy)
@@ -126,18 +126,13 @@
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, payload);
+ listener_->OnInvalidate(model_type);
}
} else {
LOG(WARNING) << "Could not get invalidation model type; "
Property changes on: chrome/browser/sync/notifier/chrome_invalidation_client.cc
___________________________________________________________________
Deleted: svn:eol-style
- LF

Powered by Google App Engine
This is Rietveld 408576698