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

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api_browsertest.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/downloads/downloads_api_browsertest.cc
diff --git a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
index 8e3b0753cb8223c60eb8768ee9faf1ed8657d891..5d1cfcf59e682b0dfc9a61f5f1c6783a9388397b 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
@@ -380,7 +380,7 @@ class DownloadExtensionTest : public ExtensionApiTest {
std::string GetFilename(const char* path) {
std::string result =
- downloads_directory_.path().AppendASCII(path).AsUTF8Unsafe();
+ downloads_directory_.GetPath().AppendASCII(path).AsUTF8Unsafe();
#if defined(OS_WIN)
for (std::string::size_type next = result.find("\\");
next != std::string::npos;
@@ -570,7 +570,7 @@ class DownloadExtensionTest : public ExtensionApiTest {
}
const base::FilePath& downloads_directory() {
- return downloads_directory_.path();
+ return downloads_directory_.GetPath();
}
DownloadsEventsListener* events_listener() { return events_listener_.get(); }
@@ -591,8 +591,7 @@ class DownloadExtensionTest : public ExtensionApiTest {
void CreateAndSetDownloadsDirectory() {
ASSERT_TRUE(downloads_directory_.CreateUniqueTempDir());
current_browser()->profile()->GetPrefs()->SetFilePath(
- prefs::kDownloadDefaultDirectory,
- downloads_directory_.path());
+ prefs::kDownloadDefaultDirectory, downloads_directory_.GetPath());
}
base::ScopedTempDir downloads_directory_;

Powered by Google App Engine
This is Rietveld 408576698