| Index: chrome/browser/chromeos/gdata/gdata_util.cc
|
| diff --git a/chrome/browser/chromeos/gdata/gdata_util.cc b/chrome/browser/chromeos/gdata/gdata_util.cc
|
| index fe764c9ea56c16d80185a3bde161038ae20ee606..f508e14ca9f8f68ea9f7353adb7f242815103872 100644
|
| --- a/chrome/browser/chromeos/gdata/gdata_util.cc
|
| +++ b/chrome/browser/chromeos/gdata/gdata_util.cc
|
| @@ -579,5 +579,20 @@ std::string FormatTimeAsString(const base::Time& time) {
|
| exploded.hour, exploded.minute, exploded.second, exploded.millisecond);
|
| }
|
|
|
| +void PrepareWritableFileAndRun(Profile* profile,
|
| + const FilePath& path,
|
| + const OpenFileCallback& callback) {
|
| + if (IsUnderGDataMountPoint(path)) {
|
| + FilePath remote_path(ExtractGDataPath(path));
|
| + GetGDataFileSystem(profile)->PrepareWritableFileAndRun(remote_path,
|
| + callback);
|
| + } else {
|
| + if (!callback.is_null()) {
|
| + content::BrowserThread::GetBlockingPool()->PostTask(
|
| + FROM_HERE, base::Bind(callback, GDATA_FILE_OK, path));
|
| + }
|
| + }
|
| +}
|
| +
|
| } // namespace util
|
| } // namespace gdata
|
|
|