Index: chrome/browser/extensions/app_notify_channel_setup_unittest.cc |
diff --git a/chrome/browser/extensions/app_notify_channel_setup_unittest.cc b/chrome/browser/extensions/app_notify_channel_setup_unittest.cc |
index bd5966301ac73ed74ee6e2179ec5fbe8235084af..2e13bc5a4cdbd725efc483e7bbd8d1434d2fea5a 100644 |
--- a/chrome/browser/extensions/app_notify_channel_setup_unittest.cc |
+++ b/chrome/browser/extensions/app_notify_channel_setup_unittest.cc |
@@ -182,9 +182,8 @@ class AppNotifyChannelSetupTest : public testing::Test { |
virtual ~AppNotifyChannelSetupTest() {} |
virtual void SetLoggedInUser(const std::string username) { |
- TestingPrefService* prefs = profile_.GetTestingPrefService(); |
- prefs->SetUserPref(prefs::kGoogleServicesUsername, |
- new StringValue(username)); |
+ StringValue value(username); |
+ profile_.GetPrefs()->Set(prefs::kGoogleServicesUsername, value); |
Mattias Nissler (ping if slow)
2012/12/21 13:09:31
Also, you could just use SetString() :)
Jói
2012/12/21 14:34:13
Done.
|
} |
virtual AppNotifyChannelSetup* CreateInstance() { |