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

Side by Side Diff: chrome/browser/resources/settings/about_page/update_warning_dialog.js

Issue 2795603002: Add an update warning for downloading over mobile data (Closed)
Patch Set: Created 3 years, 8 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
michaelpg 2017/04/04 00:44:52 2017 :-)
weidongg 2017/04/04 04:25:11 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview 'settings-update-warning-dialog' is a component warning the
7 * user about update over mobile data. By clicking 'Continue', the user
8 * agrees to download update using mobile data.
9 */
10 Polymer({
11 is: 'settings-update-warning-dialog',
12
13 behaviors: [I18nBehavior],
14
15 properties: {
michaelpg 2017/04/04 00:44:52 omit empty properties object
weidongg 2017/04/04 04:25:12 Done.
16 },
17
18 /** @override */
19 ready: function() {
20 this.browserProxy_ = settings.AboutPageBrowserProxyImpl.getInstance();
21 },
22
23 /** @override */
24 attached: function() {
25 this.$.dialog.showModal();
26 },
27
28 /** @private */
29 onCancelTap_: function() {
30 //TODO(weidongg): implement the real behaviors here.
michaelpg 2017/04/04 00:44:52 nit here and below: "// TODO(..." (space after //)
weidongg 2017/04/04 04:25:11 Done.
31 this.$.dialog.close();
32 },
33
34 /** @private */
35 onContinueTap_: function() {
36 //TODO(weidongg): implement the real behaviors here.
37 this.$.dialog.close();
38 },
39
40 /**
41 * @param {string} updateSizeMb size of the update in megabytes.
michaelpg 2017/04/04 00:44:52 nit: capitalize Size
weidongg 2017/04/04 04:25:11 Done.
42 * @private
43 */
44 setUpdateWarningMessage: function(updateSizeMb) {
45 this.$$("#update-warning-message").innerHTML =
46 this.i18n("aboutUpdateWarningMessage", updateSizeMb);
michaelpg 2017/04/04 00:44:52 4-space indent (looks like 5)
weidongg 2017/04/04 04:25:11 Done.
47 },
48 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698