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

Side by Side Diff: chrome/browser/resources/settings/about_page/update_warning_dialog.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 'settings-update-warning-dialog' is a component warning the 6 * @fileoverview 'settings-update-warning-dialog' is a component warning the
7 * user about update over mobile data. By clicking 'Continue', the user 7 * user about update over mobile data. By clicking 'Continue', the user
8 * agrees to download update using mobile data. 8 * agrees to download update using mobile data.
9 */ 9 */
10 Polymer({ 10 Polymer({
(...skipping 22 matching lines...) Expand all
33 this.$.dialog.showModal(); 33 this.$.dialog.showModal();
34 }, 34 },
35 35
36 /** @private */ 36 /** @private */
37 onCancelTap_: function() { 37 onCancelTap_: function() {
38 this.$.dialog.close(); 38 this.$.dialog.close();
39 }, 39 },
40 40
41 /** @private */ 41 /** @private */
42 onContinueTap_: function() { 42 onContinueTap_: function() {
43 this.browserProxy_.requestUpdateOverCellular(this.updateInfo.version, 43 this.browserProxy_.requestUpdateOverCellular(
44 this.updateInfo.size); 44 this.updateInfo.version, this.updateInfo.size);
45 this.$.dialog.close(); 45 this.$.dialog.close();
46 }, 46 },
47 47
48 /** @private */ 48 /** @private */
49 updateInfoChanged_: function() { 49 updateInfoChanged_: function() {
50 this.$$("#update-warning-message").innerHTML = 50 this.$$('#update-warning-message').innerHTML = this.i18n(
51 this.i18n("aboutUpdateWarningMessage", 51 'aboutUpdateWarningMessage',
52 // Convert bytes to megabytes 52 // Convert bytes to megabytes
53 Math.floor(Number(this.updateInfo.size) / (1024 * 1024))); 53 Math.floor(Number(this.updateInfo.size) / (1024 * 1024)));
54 }, 54 },
55 }); 55 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698