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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
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:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 6bdad865646150b50ac75557d16a6c9abd4c66e4..22d8fc097d58aa6b5b5838e116d346a7a08cfcb8 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -15385,7 +15385,7 @@ class LocalWindow extends EventTarget implements Window {
* 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);
}
@@ -15396,7 +15396,7 @@ class LocalWindow extends EventTarget implements Window {
*/
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);
}
LocalWindow.internal(): super.internal();
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698