Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Unified Diff: chrome/browser/chromeos/extensions/info_private_apitest.cc

Issue 2849823003: ChromeOS: implement per-user time zone preferences. (Closed)
Patch Set: Rebased. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « chrome/browser/chromeos/extensions/info_private_api.cc ('k') | chrome/browser/chromeos/login/screens/network_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698