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

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

Issue 180843004: Revert revision 33053 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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: third_party/pkg/angular/lib/playback/playback_http.dart
===================================================================
--- third_party/pkg/angular/lib/playback/playback_http.dart (revision 33054)
+++ third_party/pkg/angular/lib/playback/playback_http.dart (working copy)
@@ -13,9 +13,9 @@
@NgInjectableService()
class PlaybackHttpBackendConfig {
requestKey(String url,
- {String method, bool withCredentials, String responseType,
- String mimeType, Map<String, String> requestHeaders, sendData,
- void onProgress(ProgressEvent e)}) {
+ {String method, bool withCredentials, String responseType,
+ String mimeType, Map<String, String> requestHeaders, sendData,
+ void onProgress(ProgressEvent e)}) {
return JSON.encode({
"url": url,
"method": method,
@@ -29,7 +29,7 @@
// the HttpBackend, but it will be implemented by ourselves.
class HttpBackendWrapper {
HttpBackend backend;
- HttpBackendWrapper(this.backend);
+ HttpBackendWrapper(HttpBackend this.backend);
}
class RecordingHttpBackend implements HttpBackend {
@@ -37,8 +37,9 @@
HttpBackend _prodBackend;
PlaybackHttpBackendConfig _config;
- RecordingHttpBackend(HttpBackendWrapper wrapper, this._config)
- : _prodBackend = wrapper.backend;
+ RecordingHttpBackend(HttpBackendWrapper wrapper, this._config) {
+ this._prodBackend = wrapper.backend;
+ }
Future request(String url,
{String method, bool withCredentials, String responseType,
@@ -96,7 +97,9 @@
sendData: sendData,
onProgress: onProgress);
- if (!data.containsKey(key)) throw ["Request is not recorded $key"];
+ if (!data.containsKey(key)) {
+ throw ["Request is not recorded $key"];
+ }
var playback = data[key];
return new Future.value(
new mock.MockHttpRequest(
« no previous file with comments | « third_party/pkg/angular/lib/playback/playback_data.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