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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 10826260: Returning sourcePath from chrome.fileBrowserPrivate.addMount for gdata. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« 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/chromeos/extensions/file_browser_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.cc b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
index dc6ab4871c9f2a1a5f129f937cc13919d2c4a800..0d018fea5c840107bc68fbeb2eb4c8dd687fda83 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -1087,6 +1087,10 @@ bool AddMountFunction::RunImpl() {
}
case chromeos::MOUNT_TYPE_GDATA: {
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_)->
MountDrive(base::Bind(&AddMountFunction::SendResponse,
this,
« 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