Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ui / file_manager / video_player / js / cast / cast_extension_discoverer.js
index ca435ad..b2ff50d 100644 (file)
@@ -71,13 +71,12 @@ CastExtensionDiscoverer.isExtensionInstalled_ =
   var url = 'chrome-extension://' + extensionId + '/cast_sender.js';
   xhr.open('GET', url, true);
   xhr.onerror = function() { callback(false); };
-  xhr.onreadystatechange =
-      /** @param {*} response */
-      function(event) {
-        if (xhr.readyState == 4 && xhr.status === 200) {
-          // Cast extension found.
-          callback(true);
-        }
-      }.wrap(this);
+  /** @param {*} event */
+  xhr.onreadystatechange = function(event) {
+    if (xhr.readyState == 4 && xhr.status === 200) {
+      // Cast extension found.
+      callback(true);
+    }
+  }.wrap(this);
   xhr.send();
 };