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

Unified Diff: chrome/browser/resources/file_manager/js/metadata/metadata_dispatcher.js

Issue 18133010: Update metadata_dispatcher.js to check for SharedWorkerGlobalScope only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/metadata/metadata_dispatcher.js
diff --git a/chrome/browser/resources/file_manager/js/metadata/metadata_dispatcher.js b/chrome/browser/resources/file_manager/js/metadata/metadata_dispatcher.js
index a6f2d957da637893592be58703ce27b916506b1a..270282f2b88290c8ea47dd993a88be6b45ad4324 100644
--- a/chrome/browser/resources/file_manager/js/metadata/metadata_dispatcher.js
+++ b/chrome/browser/resources/file_manager/js/metadata/metadata_dispatcher.js
@@ -214,10 +214,7 @@ MetadataDispatcher.prototype.processOneFile = function(fileURL, callback) {
// the 'this' keyword in lambdas.
var global = self;
-// TODO(cdumez): Remove support for SharedWorkerContext name after Blink is
-// rolled.
-if (global.constructor.name == 'SharedWorkerContext' ||
- global.constructor.name == 'SharedWorkerGlobalScope') {
+if (global.constructor.name == 'SharedWorkerGlobalScope') {
global.addEventListener('connect', function(e) {
var port = e.ports[0];
new MetadataDispatcher(port);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698