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

Unified Diff: chrome/test/data/webrtc/manual/peerconnection_manual.js

Issue 384353002: Removed spaces, fixed local storage mechanism for first time visit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « chrome/test/data/webrtc/manual/peerconnection.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webrtc/manual/peerconnection_manual.js
diff --git a/chrome/test/data/webrtc/manual/peerconnection_manual.js b/chrome/test/data/webrtc/manual/peerconnection_manual.js
index 860469d9e987913e3a8148045d8c965934ef76a0..5936f598529ac776c2d490149ec5a8e34cbb0b60 100644
--- a/chrome/test/data/webrtc/manual/peerconnection_manual.js
+++ b/chrome/test/data/webrtc/manual/peerconnection_manual.js
@@ -1062,11 +1062,12 @@ function registerLocalStorage_(element_id) {
'Element \"' + element.tagName + '\" is not an input element. ');
}
- if (localStorage.getItem(element.id) == 'undefined') {
+ if (localStorage.getItem(element.id) == null) {
storeLocalStorageField_(element);
} else {
getLocalStorageField_(element);
}
+
// Registers the appropriate events for input elements.
if (element.type == 'checkbox') {
element.onclick = function() { storeLocalStorageField_(this); };
« no previous file with comments | « chrome/test/data/webrtc/manual/peerconnection.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698