Index: chrome/browser/notifications/desktop_notifications_unittest.cc |
diff --git a/chrome/browser/notifications/desktop_notifications_unittest.cc b/chrome/browser/notifications/desktop_notifications_unittest.cc |
index 1470cb61c0e955eb1fa39f77b1733724df163ba2..83ce437fd60dc025af759efda44a8849e3cfd8d9 100644 |
--- a/chrome/browser/notifications/desktop_notifications_unittest.cc |
+++ b/chrome/browser/notifications/desktop_notifications_unittest.cc |
@@ -85,7 +85,7 @@ void DesktopNotificationsTest::SetUp() { |
profile_.reset(new TestingProfile()); |
balloon_collection_ = new MockBalloonCollection(); |
ui_manager_.reset( |
- new NotificationUIManager(profile_->GetTestingPrefService())); |
+ new NotificationUIManager(profile_->GetLocalState())); |
ui_manager_->Initialize(balloon_collection_); |
balloon_collection_->set_space_change_listener(ui_manager_.get()); |
service_.reset(new DesktopNotificationService(profile(), ui_manager_.get())); |
@@ -372,8 +372,8 @@ TEST_F(DesktopNotificationsTest, TestBoundingBox) { |
TEST_F(DesktopNotificationsTest, TestPositionPreference) { |
// Set position preference to lower right. |
- profile_->GetPrefs()->SetInteger(prefs::kDesktopNotificationPosition, |
- BalloonCollection::LOWER_RIGHT); |
+ profile_->GetLocalState()->SetInteger(prefs::kDesktopNotificationPosition, |
+ BalloonCollection::LOWER_RIGHT); |
// Create some notifications. |
ViewHostMsg_ShowNotification_Params params = StandardTestNotification(); |
@@ -411,8 +411,8 @@ TEST_F(DesktopNotificationsTest, TestPositionPreference) { |
// Now change the position to upper right. This should cause an immediate |
// repositioning, and we check for the reverse ordering. |
- profile_->GetPrefs()->SetInteger(prefs::kDesktopNotificationPosition, |
- BalloonCollection::UPPER_RIGHT); |
+ profile_->GetLocalState()->SetInteger(prefs::kDesktopNotificationPosition, |
+ BalloonCollection::UPPER_RIGHT); |
last_x = -1; |
last_y = -1; |
@@ -437,8 +437,8 @@ TEST_F(DesktopNotificationsTest, TestPositionPreference) { |
// Now change the position to upper left. Confirm that the X value for the |
// balloons gets smaller. |
- profile_->GetPrefs()->SetInteger(prefs::kDesktopNotificationPosition, |
- BalloonCollection::UPPER_LEFT); |
+ profile_->GetLocalState()->SetInteger(prefs::kDesktopNotificationPosition, |
+ BalloonCollection::UPPER_LEFT); |
int current_x = (*balloons.begin())->GetPosition().x(); |
EXPECT_LT(current_x, last_x); |