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

Unified Diff: chrome/browser/resources/settings/prefs/prefs.js

Issue 990473002: Add initial implementation of date-time-settings MD settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up a couple things Created 5 years, 9 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/resources/settings/prefs/prefs.js
diff --git a/chrome/browser/resources/settings/prefs/prefs.js b/chrome/browser/resources/settings/prefs/prefs.js
index a50dd7f9852e8b54892725b0cae13f7d54a66405..a41e0deea91dcb451487bfd7afc3aaf38c412088 100644
--- a/chrome/browser/resources/settings/prefs/prefs.js
+++ b/chrome/browser/resources/settings/prefs/prefs.js
@@ -34,6 +34,7 @@ Polymer('cr-settings-prefs', {
this.settings = {};
this.initializeA11y_();
+ this.initializeDateTime_();
var observer = new ObjectObserver(this.settings);
observer.open(this.propertyChangeCallback_.bind(this, 'settings'));
@@ -76,6 +77,17 @@ Polymer('cr-settings-prefs', {
},
/**
+ * Initializes some defaults for the date/time settings.
+ * @private
+ */
+ initializeDateTime_: function() {
+ this.settings.dateTime = {
Jeremy Klein 2015/03/06 23:26:45 See comment in date-time-page.html
Oren Blasberg 2015/03/10 01:25:01 Acknowledged.
+ timezone: 'America/Los_Angeles',
+ use24HourClock: false,
+ };
+ },
+
+ /**
* @param {string} propertyPath The path before the property names.
* @param {!Array<string>} added An array of keys which were added.
* @param {!Array<string>} removed An array of keys which were removed.

Powered by Google App Engine
This is Rietveld 408576698