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

Issue 23629010: internet_detail.js: Handle undefined APN fields. (Closed)

Created:
7 years, 3 months ago by armansito
Modified:
7 years, 3 months ago
Reviewers:
stevenjb, Ben Chan
CC:
chromium-reviews, dbeam+watch-options_chromium.org, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

internet_detail.js: Fix errors in cellular APN selection UI. This CL fixes the following bugs in the cellular APN setting UI.: 1. The first time the user brings up the custom APN UI, the APN input field contents were being set to "undefined". Fixed this. 2. After setting a custom APN, if the user ever reverted to the default APN, and if the default APN did not contain a username/password field, the username and password fields of the Cellular.APN property were being set to "undefined" and this was getting stored in the profile. 3. The JS now caches the APN fields set by the user so that the user can now switch back and forth between the default and the selected APNs. Before, trying to select the user APN via the drop-down menu resulted in the wrong APN to be set. BUG=282711 R=stevenjb@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221524

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed stevenjb@'s comments. #

Patch Set 3 : Fix another small but subtle bug related to APN selection. #

Total comments: 2

Patch Set 4 : Rebased. #

Patch Set 5 : Rebased . #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -28 lines) Patch
M chrome/browser/resources/options/chromeos/internet_detail.js View 1 2 5 chunks +40 lines, -28 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
armansito
7 years, 3 months ago (2013-08-30 02:43:58 UTC) #1
stevenjb
https://codereview.chromium.org/23629010/diff/1/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (right): https://codereview.chromium.org/23629010/diff/1/chrome/browser/resources/options/chromeos/internet_detail.js#newcode199 chrome/browser/resources/options/chromeos/internet_detail.js:199: data.apn.password = apn.password ? String(apn.password) : ''; Seems like ...
7 years, 3 months ago (2013-08-30 16:34:04 UTC) #2
armansito
https://codereview.chromium.org/23629010/diff/1/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (right): https://codereview.chromium.org/23629010/diff/1/chrome/browser/resources/options/chromeos/internet_detail.js#newcode199 chrome/browser/resources/options/chromeos/internet_detail.js:199: data.apn.password = apn.password ? String(apn.password) : ''; On 2013/08/30 ...
7 years, 3 months ago (2013-08-30 23:55:19 UTC) #3
armansito
ptal
7 years, 3 months ago (2013-08-31 00:18:23 UTC) #4
stevenjb
lgtm https://codereview.chromium.org/23629010/diff/9001/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (right): https://codereview.chromium.org/23629010/diff/9001/chrome/browser/resources/options/chromeos/internet_detail.js#newcode208 chrome/browser/resources/options/chromeos/internet_detail.js:208: }; nit/question: Could this just be data.userApn = ...
7 years, 3 months ago (2013-09-03 21:44:32 UTC) #5
armansito
https://codereview.chromium.org/23629010/diff/9001/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (right): https://codereview.chromium.org/23629010/diff/9001/chrome/browser/resources/options/chromeos/internet_detail.js#newcode208 chrome/browser/resources/options/chromeos/internet_detail.js:208: }; On 2013/09/03 21:44:32, stevenjb (chromium) wrote: > nit/question: ...
7 years, 3 months ago (2013-09-03 22:07:38 UTC) #6
armansito
7 years, 3 months ago (2013-09-05 21:45:58 UTC) #7
Message was sent while issue was closed.
Committed patchset #6 manually as r221524 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698