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

Unified Diff: chrome/browser/resources/settings/internet_page/network_siminfo.js

Issue 2303093003: MD Settings: Internet: Enable SIM unlock with no cellular network (Closed)
Patch Set: Rebase plus Feedback Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/internet_page/network_siminfo.js
diff --git a/chrome/browser/resources/settings/internet_page/network_siminfo.js b/chrome/browser/resources/settings/internet_page/network_siminfo.js
index 65f4677e08534fa7cc042847bb2be00036a3303d..e0a2514efc7836edb3e0d1ad0b0ab7020ddfd4e5 100644
--- a/chrome/browser/resources/settings/internet_page/network_siminfo.js
+++ b/chrome/browser/resources/settings/internet_page/network_siminfo.js
@@ -123,10 +123,7 @@ Polymer({
* @private
*/
sendEnterPin_: function(event) {
- var guid = this.networkProperties && this.networkProperties.GUID;
- if (!guid)
- return;
-
+ var guid = (this.networkProperties && this.networkProperties.GUID) || '';
var pin = this.$.enterPin.value;
if (!this.validatePin_(pin))
return;
@@ -167,10 +164,7 @@ Polymer({
* @private
*/
sendChangePin_: function(event) {
- var guid = this.networkProperties && this.networkProperties.GUID;
- if (!guid)
- return;
-
+ var guid = (this.networkProperties && this.networkProperties.GUID) || '';
var newPin = this.$.changePinNew1.value;
if (!this.validatePin_(newPin, this.$.changePinNew2.value))
return;
@@ -208,9 +202,7 @@ Polymer({
* @private
*/
sendUnlockPin_: function(event) {
- var guid = this.networkProperties && this.networkProperties.GUID;
- if (!guid)
- return;
+ var guid = (this.networkProperties && this.networkProperties.GUID) || '';
var pin = this.$.unlockPin.value;
if (!this.validatePin_(pin))
return;
@@ -245,10 +237,7 @@ Polymer({
* @private
*/
sendUnlockPuk_: function(event) {
- var guid = this.networkProperties && this.networkProperties.GUID;
- if (!guid)
- return;
-
+ var guid = (this.networkProperties && this.networkProperties.GUID) || '';
var puk = this.$.unlockPuk.value;
if (!this.validatePuk_(puk))
return;

Powered by Google App Engine
This is Rietveld 408576698