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

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

Issue 10834354: Refactor the Photo Editor to enable new feature work (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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: chrome/browser/resources/file_manager/js/file_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index 6315a1d12a8fe7f3336abf44942d8df453a744f6..432d648b017d36b4194cbd678a1916bd82eff9f1 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -1486,10 +1486,10 @@ FileManager.prototype = {
// 2. Reloading a Gallery page. Must be an image or a video file.
// 3. A user manually entered a URL pointing to a file.
if (FileType.isImageOrVideo(path)) {
- tasks.execute(self.getExtensionId() + '|gallery');
+ tasks.execute(util.getExtensionId() + '|gallery');
} else if (FileType.getMediaType(path) == 'archive') {
self.show_();
- tasks.execute(self.getExtensionId() + '|mount-archive');
+ tasks.execute(util.getExtensionId() + '|mount-archive');
} else {
self.show_();
return;
@@ -2401,10 +2401,6 @@ FileManager.prototype = {
return this.directoryModel_.getCurrentRootType() === RootType.GDATA;
};
- FileManager.prototype.getExtensionId = function() {
- return chrome.extension.getURL('').split('/')[2];
- };
-
FileManager.prototype.onExternalLinkClick_ = function(url) {
chrome.tabs.create({url: url});
if (this.dialogType_ != FileManager.DialogType.FULL_PAGE) {
« no previous file with comments | « chrome/browser/resources/file_manager/gallery.html ('k') | chrome/browser/resources/file_manager/js/file_tasks.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698