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

Unified Diff: ui/file_manager/file_manager/foreground/js/metadata/metadata_dispatcher.js

Issue 246543002: Add script files of the separated Gallery.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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
Index: ui/file_manager/file_manager/foreground/js/metadata/metadata_dispatcher.js
diff --git a/ui/file_manager/file_manager/foreground/js/metadata/metadata_dispatcher.js b/ui/file_manager/file_manager/foreground/js/metadata/metadata_dispatcher.js
index b711d7559b76db7c430c2845d31779b6113982db..aa957a4b4085b04700debc7313461807181a1004 100644
--- a/ui/file_manager/file_manager/foreground/js/metadata/metadata_dispatcher.js
+++ b/ui/file_manager/file_manager/foreground/js/metadata/metadata_dispatcher.js
@@ -1,15 +1,22 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
+/**
+ * Protocol + host parts of extension URL.
+ * @type {string}
+ * @const
+ */
+var FILE_MANAGER_HOST = 'chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj';
+
// All of these scripts could be imported with a single call to importScripts,
// but then load and compile time errors would all be reported from the same
// line.
-importScripts('metadata_parser.js');
-importScripts('byte_reader.js');
-importScripts('../../../common/js/util.js');
+importScripts(FILE_MANAGER_HOST + '/foreground/js/metadata/metadata_parser.js');
+importScripts(FILE_MANAGER_HOST + '/foreground/js/metadata/byte_reader.js');
+importScripts(FILE_MANAGER_HOST + '/common/js/util.js');
/**
* Dispatches metadata requests to the correct parser.
@@ -23,10 +30,10 @@ function MetadataDispatcher(port) {
// Make sure to update component_extension_resources.grd
// when adding new parsers.
- importScripts('exif_parser.js');
- importScripts('image_parsers.js');
- importScripts('mpeg_parser.js');
- importScripts('id3_parser.js');
+ importScripts(FILE_MANAGER_HOST + '/foreground/js/metadata/exif_parser.js');
+ importScripts(FILE_MANAGER_HOST + '/foreground/js/metadata/image_parsers.js');
+ importScripts(FILE_MANAGER_HOST + '/foreground/js/metadata/mpeg_parser.js');
+ importScripts(FILE_MANAGER_HOST + '/foreground/js/metadata/id3_parser.js');
var patterns = [];
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js ('k') | ui/file_manager/file_manager/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698