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

Side by Side Diff: chrome/browser/resources/settings/date_time_page/date_time_page.js

Issue 1132223005: Fix the pref binding by binding to the object rather than the element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixes
Patch Set: ::change Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'cr-settings-date-time-page' is the settings page containing date-time 7 * 'cr-settings-date-time-page' is the settings page containing date-time
8 * settings. 8 * settings.
9 * 9 *
10 * Example: 10 * Example:
11 * 11 *
12 * <core-animated-pages> 12 * <core-animated-pages>
13 * <cr-settings-date-time-page prefs="{{prefs}}"> 13 * <cr-settings-date-time-page prefs="{{prefs}}">
14 * </cr-settings-date-time-page> 14 * </cr-settings-date-time-page>
15 * ... other pages ... 15 * ... other pages ...
16 * </core-animated-pages> 16 * </core-animated-pages>
17 * 17 *
18 * @group Chrome Settings Elements 18 * @group Chrome Settings Elements
19 * @element cr-settings-date-time-page 19 * @element cr-settings-date-time-page
20 */ 20 */
21 Polymer({ 21 Polymer({
22 is: 'cr-settings-date-time-page', 22 is: 'cr-settings-date-time-page',
23 23
24 properties: { 24 properties: {
25 /** 25 /**
26 * Preferences state. 26 * Preferences state.
27 * @type {?CrSettingsPrefsElement}
28 */ 27 */
29 prefs: { 28 prefs: {
30 type: Object, 29 type: Object,
31 notify: true 30 notify: true
32 }, 31 },
33 32
34 /** 33 /**
35 * Route for the page. 34 * Route for the page.
36 */ 35 */
37 route: { 36 route: {
(...skipping 30 matching lines...) Expand all
68 /** 67 /**
69 * Name of the 'core-icon' to show. 68 * Name of the 'core-icon' to show.
70 */ 69 */
71 icon: { 70 icon: {
72 type: String, 71 type: String,
73 value: 'device:access-time', 72 value: 'device:access-time',
74 readOnly: true 73 readOnly: true
75 }, 74 },
76 }, 75 },
77 }); 76 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698