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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

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 | « client/dart.js ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 82eaeee52c4c6a1c846b5a213ef6f1e8bbc284d3..b95ba7970498638e686684459c63c2ff142989dd 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -12001,7 +12001,7 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" {
* registered under [name].
*/
SendPortSync lookupPort(String name) {
- var port = JSON.parse(localStorage['dart-port:$name']);
+ var port = JSON.parse(document.documentElement.attributes['dart-port:$name']);
return _deserialize(port);
}
@@ -12012,7 +12012,7 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" {
*/
void 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);
}
« no previous file with comments | « client/dart.js ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698