Chromium Code Reviews| Index: chrome/browser/sync/notifier/server_notifier_thread.cc |
| =================================================================== |
| --- chrome/browser/sync/notifier/server_notifier_thread.cc (revision 71618) |
| +++ chrome/browser/sync/notifier/server_notifier_thread.cc (working copy) |
| @@ -64,7 +64,9 @@ |
| "used"; |
| } |
| -void ServerNotifierThread::OnInvalidate(syncable::ModelType model_type) { |
| +void ServerNotifierThread::OnInvalidate( |
| + syncable::ModelType model_type, |
| + const std::string& payload) { |
| DCHECK_EQ(MessageLoop::current(), worker_message_loop()); |
| DCHECK_GE(model_type, syncable::FIRST_REAL_MODEL_TYPE); |
| DCHECK_LT(model_type, syncable::MODEL_TYPE_COUNT); |
| @@ -73,7 +75,8 @@ |
| syncable::ModelTypeBitSet model_types; |
| model_types[model_type] = true; |
| IncomingNotificationData notification_data; |
| - notification_data.service_specific_data = model_types.to_string(); |
| + notification_data.service_url = model_types.to_string(); |
|
akalin
2011/01/19 22:14:52
You should document the 'protocol' we're using, i.
Nicolas Zea
2011/01/19 22:54:55
Done.
|
| + notification_data.service_specific_data = payload; |
| observers_->Notify(&Observer::OnIncomingNotification, notification_data); |
| } |