Index: chrome/browser/extensions/app_notification_manager_sync_unittest.cc |
=================================================================== |
--- chrome/browser/extensions/app_notification_manager_sync_unittest.cc (revision 106989) |
+++ chrome/browser/extensions/app_notification_manager_sync_unittest.cc (working copy) |
@@ -146,12 +146,6 @@ |
return notif; |
} |
- static AppNotification* CreateNotification(const AppNotification& notif) { |
- return CreateNotification( |
- notif.is_local(), notif.guid(), notif.extension_id(), notif.title(), |
- notif.body(), notif.link_url().spec(), notif.link_text()); |
- } |
- |
static SyncData CreateSyncData(int suffix) { |
scoped_ptr<AppNotification> notif(CreateNotification(suffix)); |
return AppNotificationManager::CreateSyncDataFromNotification(*notif); |
@@ -491,9 +485,8 @@ |
SyncChangeList changes; |
changes.push_back(CreateSyncChange( |
SyncChange::ACTION_ADD, CreateNotification(3))); |
+ changes.push_back(CreateSyncChange(SyncChange::ACTION_DELETE, n1->Copy())); |
changes.push_back(CreateSyncChange( |
- SyncChange::ACTION_DELETE, CreateNotification(*n1))); |
- changes.push_back(CreateSyncChange( |
SyncChange::ACTION_ADD, CreateNotification(4))); |
model()->ProcessSyncChanges(FROM_HERE, changes); |