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 6effdf165fb1d935f95c22fddb3b592c1d886d03..ad30dad3037692cfb7a11d78a9d5c154e89e191d 100644 |
--- a/chrome/browser/notifications/desktop_notifications_unittest.cc |
+++ b/chrome/browser/notifications/desktop_notifications_unittest.cc |
@@ -77,7 +77,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())); |
@@ -364,8 +364,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(); |
@@ -403,8 +403,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; |
@@ -429,8 +429,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); |