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

Unified Diff: sdk/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate

Issue 11415064: Phase out local storage usage in PortSync code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge Created 8 years, 1 month 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 | « sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate
diff --git a/sdk/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate b/sdk/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate
index 6cedf2d4b6c302b05ce31dad24c4cc3d3143f1e5..476d8dd6946414e07e62ffefff4948b7f1d98d1b 100644
--- a/sdk/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate
+++ b/sdk/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate
@@ -20,7 +20,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
* registered under [name].
*/
lookupPort(String name) {
- var port = JSON.parse(localStorage['dart-port:$name']);
+ var port = JSON.parse(document.documentElement.attributes['dart-port:$name']);
return _deserialize(port);
}
@@ -31,7 +31,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
*/
registerPort(String name, var port) {
var serialized = _serialize(port);
- localStorage['dart-port:$name'] = JSON.stringify(serialized);
+ document.documentElement.attributes['dart-port:$name'] = JSON.stringify(serialized);
}
$!MEMBERS
« no previous file with comments | « sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698