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

Unified Diff: samples/webcomponents/shadow_polyfill.dart

Issue 10823352: Rename XMLHttpRequest to HttpRequest. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
Index: samples/webcomponents/shadow_polyfill.dart
===================================================================
--- samples/webcomponents/shadow_polyfill.dart (revision 10850)
+++ samples/webcomponents/shadow_polyfill.dart (working copy)
@@ -11,7 +11,7 @@
* CustomElementsManager.
*
* This script only works at present in dart2js, but it should work in dartium
- * soon (pending MutationObservers). The script does an XMLHTTP request, so
+ * soon (pending MutationObservers). The script does an HTTP request, so
* to test using locally defined custom elements you must run chrome with the
* flag -allow-file-access-from-files.
*/
@@ -95,7 +95,7 @@
* custom element declarations.
*/
void _load(String url) {
- var request = new XMLHttpRequest();
+ var request = new HttpRequest();
// We use a blocking request here because no Dart is allowed to run
// until DOM content is loaded.
// TODO(samhop): give a decent timeout message if custom elements fail to

Powered by Google App Engine
This is Rietveld 408576698