chrome/browser/chromeos/drive/drive_download_observer.cc
// Substitutes virtual drive path for local temporary path.
Substitutes virtual drive path for local temporary path.
Substitutes virtual drive path for local temporary path .
void SubstituteDriveDownloadPathInternal(
    Profile* profile,
    const DriveDownloadObserver::SubstituteDriveDownloadPathCallback&
        callback) {
  DCHECK(profile);
  DVLOG(1) << "SubstituteDriveDownloadPathInternal";
  const FilePath drive_tmp_download_dir = GetSystemService(profile)->cache()->
      GetCacheDirectoryPath(DriveCache::CACHE_TYPE_TMP_DOWNLOADS);
  base::PostTaskAndReplyWithResult(
      BrowserThread::GetBlockingPool(),
      FROM_HERE,
      base::Bind(&GetDriveTempDownloadPath, drive_tmp_download_dir),
      callback);
}
void SubstituteDriveDownloadPathInternal ( Profile * profile , const DriveDownloadObserver :: SubstituteDriveDownloadPathCallback & callback ) { DCHECK ( profile ) ; DVLOG ( 1 ) << " " ; const FilePath drive_tmp_download_dir = GetSystemService ( profile ) -> cache ( ) -> GetCacheDirectoryPath ( DriveCache :: CACHE_TYPE_TMP_DOWNLOADS ) ; base :: PostTaskAndReplyWithResult ( BrowserThread :: GetBlockingPool ( ) , FROM_HERE , base :: Bind ( & GetDriveTempDownloadPath , drive_tmp_download_dir ) , callback ) ; }
Substitutes virtual drive path for local temporary path.
Substitutes virtual drive path for local temporary path .
// Swap the drive path with a local path. Local path must be created // on a blocking thread.