Commit d86cbdea authored by serya@chromium.org's avatar serya@chromium.org

Returning sourcePath from chrome.fileBrowserPrivate.addMount for gdata.

BUG=141807
TEST=Navigate to a folder in Google Drive in the File Manager. Press Ctrl+R. Ensure file the list is correct (before the fix it used to contain Google Drive root directory content). Also checked the behavior described in the issue.


Review URL: https://chromiumcodereview.appspot.com/10826260

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151250 0039d316-1c4b-4281-b951-d872f2087c98
parent 3c7d9d9b
...@@ -1087,6 +1087,10 @@ bool AddMountFunction::RunImpl() { ...@@ -1087,6 +1087,10 @@ bool AddMountFunction::RunImpl() {
} }
case chromeos::MOUNT_TYPE_GDATA: { case chromeos::MOUNT_TYPE_GDATA: {
const bool success = true; const bool success = true;
// Pass back the gdata mount point path as source path.
const std::string& gdata_path =
gdata::util::GetGDataMountPointPathAsString();
SetResult(Value::CreateStringValue(gdata_path));
FileBrowserEventRouterFactory::GetForProfile(profile_)-> FileBrowserEventRouterFactory::GetForProfile(profile_)->
MountDrive(base::Bind(&AddMountFunction::SendResponse, MountDrive(base::Bind(&AddMountFunction::SendResponse,
this, this,
......
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