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

Unified Diff: chrome/browser/chromeos/drive/job_scheduler.cc

Issue 15915008: drive: Stop using /dev/null to store an empty file to the cache from CreateFileOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « chrome/browser/chromeos/drive/file_system_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/job_scheduler.cc
diff --git a/chrome/browser/chromeos/drive/job_scheduler.cc b/chrome/browser/chromeos/drive/job_scheduler.cc
index 689d3a7d71ee78157b0592848129195b6a6098bc..8779b264676186204cf9c21bcd787b574ca392cf 100644
--- a/chrome/browser/chromeos/drive/job_scheduler.cc
+++ b/chrome/browser/chromeos/drive/job_scheduler.cc
@@ -581,6 +581,8 @@ void JobScheduler::CreateFile(
const google_apis::GetResourceEntryCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ const base::FilePath kDevNull(FILE_PATH_LITERAL("/dev/null"));
+
JobEntry* new_job = CreateNewJob(TYPE_CREATE_FILE);
new_job->job_info.file_path = drive_file_path;
new_job->context = context;
@@ -588,7 +590,7 @@ void JobScheduler::CreateFile(
UploadNewFileParams params;
params.parent_resource_id = parent_resource_id;
params.drive_file_path = drive_file_path;
- params.local_file_path = base::FilePath(util::kSymLinkToDevNull);
+ params.local_file_path = kDevNull; // Upload an empty file.
params.title = title;
params.content_type = content_type;
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698