Index: chrome/browser/chromeos/extensions/info_private_apitest.cc |
diff --git a/chrome/browser/chromeos/extensions/info_private_apitest.cc b/chrome/browser/chromeos/extensions/info_private_apitest.cc |
index 12c568ef1f3663530d70bc56c24c4cd392318016..c3c88b1916fb8e0b307867fcdfb27aeacd5dba55 100644 |
--- a/chrome/browser/chromeos/extensions/info_private_apitest.cc |
+++ b/chrome/browser/chromeos/extensions/info_private_apitest.cc |
@@ -44,9 +44,7 @@ class ChromeOSInfoPrivateTest : public ExtensionApiTest { |
IN_PROC_BROWSER_TEST_F(ChromeOSInfoPrivateTest, TestGetAndSet) { |
// Set the initial timezone different from what JS function |
// timezoneSetTest() will attempt to set. |
- base::Value initial_timezone("America/Los_Angeles"); |
- chromeos::CrosSettings::Get()->Set(chromeos::kSystemTimezone, |
- initial_timezone); |
+ profile()->GetPrefs()->SetString(prefs::kUserTimezone, "America/Los_Angeles"); |
// Check that accessibility settings are set to default values. |
PrefService* prefs = profile()->GetPrefs(); |