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

Side by Side Diff: chrome/browser/resources/settings/controls/pref_control_behavior.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @polymerBehavior Tracks the initialization of a specified preference and 6 * @polymerBehavior Tracks the initialization of a specified preference and
7 * logs an error if the pref is not defined after prefs have been fetched. 7 * logs an error if the pref is not defined after prefs have been fetched.
8 */ 8 */
9 var PrefControlBehavior = { 9 var PrefControlBehavior = {
10 properties: { 10 properties: {
(...skipping 22 matching lines...) Expand all
33 if (!this.pref) { 33 if (!this.pref) {
34 var error = 'Pref not found for element ' + this.tagName; 34 var error = 'Pref not found for element ' + this.tagName;
35 if (this.id) 35 if (this.id)
36 error += '#' + this.id; 36 error += '#' + this.id;
37 error += ' in ' + this.domHost.tagName; 37 error += ' in ' + this.domHost.tagName;
38 console.error(error); 38 console.error(error);
39 } 39 }
40 }.bind(this)); 40 }.bind(this));
41 }, 41 },
42 }; 42 };
43
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698