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

Unified Diff: chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_helper.cc

Issue 99923002: Move temp file functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
Index: chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_helper.cc
diff --git a/chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_helper.cc b/chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_helper.cc
index 7871f70bf4522d67748a33b24d63b4742d5f88cd..5b628e16631c20fe6ca44ea403fa8d311813f29e 100644
--- a/chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_helper.cc
+++ b/chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_helper.cc
@@ -226,7 +226,7 @@ GDataErrorCode FakeDriveServiceHelper::ReadFile(
error = google_apis::GDATA_OTHER_ERROR;
base::FilePath temp_file;
- EXPECT_TRUE(file_util::CreateTemporaryFileInDir(temp_dir_, &temp_file));
+ EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_, &temp_file));
fake_drive_service_->DownloadFile(
temp_file, file->resource_id(),
base::Bind(&DownloadResultCallback, &error),
@@ -285,7 +285,7 @@ void FakeDriveServiceHelper::Initialize() {
base::FilePath FakeDriveServiceHelper::WriteToTempFile(
const std::string& content) {
base::FilePath temp_file;
- EXPECT_TRUE(file_util::CreateTemporaryFileInDir(temp_dir_, &temp_file));
+ EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_, &temp_file));
EXPECT_EQ(static_cast<int>(content.size()),
file_util::WriteFile(temp_file, content.data(), content.size()));
return temp_file;

Powered by Google App Engine
This is Rietveld 408576698