Commit 5711e369 authored by mtomasz@chromium.org's avatar mtomasz@chromium.org

Fixed wrong constant names to make Importer working again.

Since Importer has been recently disabled, it was forgotten during refactoring GDATA -> DRIVE. This patch updates the constants' names.

TEST=Check if the importer works.
BUG=None

Review URL: https://codereview.chromium.org/12260038

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182441 0039d316-1c4b-4281-b951-d872f2087c98
parent 375c7327
...@@ -37,10 +37,10 @@ PhotoImport.prototype = { __proto__: cr.EventTarget.prototype }; ...@@ -37,10 +37,10 @@ PhotoImport.prototype = { __proto__: cr.EventTarget.prototype };
PhotoImport.ITEM_WIDTH = 164 + 8; PhotoImport.ITEM_WIDTH = 164 + 8;
/** /**
* Directory name on the GData containing the imported photos. * Directory name on the Drive containing the imported photos.
* TODO(dgozman): localize * TODO(dgozman): localize
*/ */
PhotoImport.GDATA_PHOTOS_DIR = 'My Photos'; PhotoImport.DRIVE_PHOTOS_DIR = 'My Photos';
/** /**
* Loads app in the document body. * Loads app in the document body.
...@@ -129,14 +129,14 @@ PhotoImport.prototype.initDestination_ = function() { ...@@ -129,14 +129,14 @@ PhotoImport.prototype.initDestination_ = function() {
}.bind(this); }.bind(this);
var onMounted = function() { var onMounted = function() {
var dir = PathUtil.join(RootDirectory.GDATA, PhotoImport.GDATA_PHOTOS_DIR); var dir = PathUtil.join(RootDirectory.DRIVE, PhotoImport.DRIVE_PHOTOS_DIR);
util.getOrCreateDirectory(this.filesystem_.root, dir, onDirectory, onError); util.getOrCreateDirectory(this.filesystem_.root, dir, onDirectory, onError);
}.bind(this); }.bind(this);
if (this.volumeManager_.isMounted(RootDirectory.GDATA)) { if (this.volumeManager_.isMounted(RootDirectory.DRIVE)) {
onMounted(); onMounted();
} else { } else {
this.volumeManager_.mountGData(onMounted, onError); this.volumeManager_.mountDrive(onMounted, onError);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment