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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_apitest.cc

Issue 2314363002: extensions: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Comment addressed Created 4 years, 3 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
Index: chrome/browser/extensions/api/file_system/file_system_apitest.cc
diff --git a/chrome/browser/extensions/api/file_system/file_system_apitest.cc b/chrome/browser/extensions/api/file_system/file_system_apitest.cc
index 00f08257ec655789a969723f3423e44f4fadeaee..3a3b841e71e8b108c30f0ae773118235c9d7975d 100644
--- a/chrome/browser/extensions/api/file_system/file_system_apitest.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_apitest.cc
@@ -90,9 +90,10 @@ class FileSystemApiTest : public PlatformAppBrowserTest {
return base::FilePath();
}
FileSystemChooseEntryFunction::RegisterTempExternalFileSystemForTest(
- "test_temp", temp_dir_.path());
+ "test_temp", temp_dir_.GetPath());
- base::FilePath destination = temp_dir_.path().AppendASCII(destination_name);
+ base::FilePath destination =
+ temp_dir_.GetPath().AppendASCII(destination_name);
if (copy_gold) {
base::FilePath source = test_root_folder_.AppendASCII("gold.txt");
EXPECT_TRUE(base::CopyFile(source, destination));
@@ -108,13 +109,13 @@ class FileSystemApiTest : public PlatformAppBrowserTest {
return std::vector<base::FilePath>();
}
FileSystemChooseEntryFunction::RegisterTempExternalFileSystemForTest(
- "test_temp", temp_dir_.path());
+ "test_temp", temp_dir_.GetPath());
std::vector<base::FilePath> result;
for (std::vector<std::string>::const_iterator it =
destination_names.begin();
it != destination_names.end(); ++it) {
- base::FilePath destination = temp_dir_.path().AppendASCII(*it);
+ base::FilePath destination = temp_dir_.GetPath().AppendASCII(*it);
if (copy_gold) {
base::FilePath source = test_root_folder_.AppendASCII("gold.txt");
EXPECT_TRUE(base::CopyFile(source, destination));

Powered by Google App Engine
This is Rietveld 408576698