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

Unified Diff: client/dom/generated/src/wrapping/_NavigatorWrappingImplementation.dart

Issue 9539003: Safely wrap window.top in frog dom. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and merge Created 8 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: client/dom/generated/src/wrapping/_NavigatorWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_NavigatorWrappingImplementation.dart b/client/dom/generated/src/wrapping/_NavigatorWrappingImplementation.dart
index 11732ef0bf709154257dd7841572217633bc8785..ebf68f172a55ff5176fb5e0c07eeffb9f849f341 100644
--- a/client/dom/generated/src/wrapping/_NavigatorWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_NavigatorWrappingImplementation.dart
@@ -74,16 +74,10 @@ class _NavigatorWrappingImplementation extends DOMWrapperBase implements Navigat
static void _registerProtocolHandler(receiver, scheme, url, title) native;
void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback successCallback, [NavigatorUserMediaErrorCallback errorCallback = null]) {
- if (errorCallback === null) {
- _webkitGetUserMedia(this, options, successCallback);
- return;
- } else {
- _webkitGetUserMedia_2(this, options, successCallback, errorCallback);
- return;
- }
+ _webkitGetUserMedia(this, options, successCallback, errorCallback);
+ return;
}
- static void _webkitGetUserMedia(receiver, options, successCallback) native;
- static void _webkitGetUserMedia_2(receiver, options, successCallback, errorCallback) native;
+ static void _webkitGetUserMedia(receiver, options, successCallback, errorCallback) native;
String get typeName() { return "Navigator"; }
}

Powered by Google App Engine
This is Rietveld 408576698