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

Unified Diff: third_party/pkg/angular/lib/playback/playback_http.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | « third_party/pkg/angular/lib/perf/module.dart ('k') | third_party/pkg/angular/lib/routing/module.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/lib/playback/playback_http.dart
diff --git a/third_party/pkg/angular/lib/playback/playback_http.dart b/third_party/pkg/angular/lib/playback/playback_http.dart
index f6253a3d9461e1808c373d88fac516d138cfb37f..7efe1d2f6b73edc5abc56e3b965b0c3987fdd8c9 100644
--- a/third_party/pkg/angular/lib/playback/playback_http.dart
+++ b/third_party/pkg/angular/lib/playback/playback_http.dart
@@ -4,14 +4,17 @@ import 'dart:async';
import 'dart:convert' show JSON;
import 'dart:html';
-import 'package:angular/core_dom/module.dart';
-import 'package:angular/core/service.dart';
-import 'package:angular/mock/module.dart' as mock;
+import 'package:angular/core_dom/module_internal.dart';
+import 'package:angular/core/annotation_src.dart';
+import 'package:angular/mock/http_backend.dart' as mock;
import 'package:angular/playback/playback_data.dart' as playback_data;
-@NgInjectableService()
+@Injectable()
class PlaybackHttpBackendConfig {
+
+ String get recorderUrl => '/record';
+
requestKey(String url,
{String method, bool withCredentials, String responseType,
String mimeType, Map<String, String> requestHeaders, sendData,
@@ -63,7 +66,7 @@ class RecordingHttpBackend implements HttpBackend {
onProgress: onProgress);
assert(key is String);
- _prodBackend.request('/record', //TODO make this URL configurable.
+ _prodBackend.request(_config.recorderUrl,
method: 'POST', sendData: JSON.encode({
"key": key, "data": JSON.encode({
"status": r.status,
« no previous file with comments | « third_party/pkg/angular/lib/perf/module.dart ('k') | third_party/pkg/angular/lib/routing/module.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698