Index: trunk/src/chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc |
=================================================================== |
--- trunk/src/chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc (revision 201968) |
+++ trunk/src/chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc (working copy) |
@@ -9,7 +9,6 @@ |
#include "chrome/browser/notifications/notification.h" |
#include "chrome/browser/notifications/notification_ui_manager.h" |
#include "chrome/browser/notifications/sync_notifier/synced_notification.h" |
-#include "chrome/browser/profiles/profile.h" |
#include "sync/api/sync_data.h" |
#include "sync/protocol/sync.pb.h" |
#include "sync/protocol/synced_notification_specifics.pb.h" |
@@ -88,7 +87,6 @@ |
OVERRIDE { |
// Make a deep copy of the notification that we can inspect. |
notification_ = notification; |
- profile_ = profile; |
} |
// Returns true if any notifications match the supplied ID, either currently |
@@ -103,16 +101,6 @@ |
return false; |
} |
- virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin( |
- Profile* profile, |
- const GURL& source) OVERRIDE { |
- std::set<std::string> notification_ids; |
- if (source == notification_.origin_url() && |
- profile->IsSameProfile(profile_)) |
- notification_ids.insert(notification_.notification_id()); |
- return notification_ids; |
- } |
- |
// Removes notifications matching the |source_origin| (which could be an |
// extension ID). Returns true if anything was removed. |
virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE { |
@@ -134,7 +122,6 @@ |
private: |
DISALLOW_COPY_AND_ASSIGN(StubNotificationUIManager); |
Notification notification_; |
- Profile* profile_; |
}; |
class SyncedNotificationTest : public testing::Test { |