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

Unified Diff: pkg/browser/lib/dart.js

Issue 11774006: A pub package to host dart.js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix test suite to use new path Created 7 years, 11 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 | « no previous file | pkg/browser/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/browser/lib/dart.js
diff --git a/client/dart.js b/pkg/browser/lib/dart.js
similarity index 94%
copy from client/dart.js
copy to pkg/browser/lib/dart.js
index 1777e22828b2c0745cd35cf093693840c22804d5..bf60f52cc0f53be9a7bf74855d34f0dbfe34d3e7 100644
--- a/client/dart.js
+++ b/pkg/browser/lib/dart.js
@@ -161,24 +161,11 @@ function ReceivePortSync() {
var stringified = JSON.stringify(serialize(port));
var attrName = 'dart-port:' + name;
document.documentElement.setAttribute(attrName, stringified);
- // TODO(vsm): Phase out usage of localStorage and delete the
- // below. We're leaving it in temporarily for backwards
- // compatibility.
- try {
- window.localStorage[attrName] = stringified;
- } catch (e) {
- // Swallow errors (e.g., Chrome apps disallow this access).
- }
};
window.lookupPort = function(name) {
var attrName = 'dart-port:' + name;
var stringified = document.documentElement.getAttribute(attrName);
- // TODO(vsm): Phase out usage of localStorage. We're leaving it in
- // temporarily for backwards compatibility.
- if (!stringified) {
- stringified = window.localStorage[attrName];
- }
return deserialize(JSON.parse(stringified));
};
« no previous file with comments | « no previous file | pkg/browser/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698