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

Unified Diff: chrome/browser/extensions/api/streams_private/streams_private_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/streams_private/streams_private_apitest.cc
diff --git a/chrome/browser/extensions/api/streams_private/streams_private_apitest.cc b/chrome/browser/extensions/api/streams_private/streams_private_apitest.cc
index 69da0316c20d2c3bd0f4840adb2409bb5ef53e61..64cba600a48296b56138f6dee306c4f688668cfe 100644
--- a/chrome/browser/extensions/api/streams_private/streams_private_apitest.cc
+++ b/chrome/browser/extensions/api/streams_private/streams_private_apitest.cc
@@ -158,7 +158,7 @@ class StreamsPrivateApiTest : public ExtensionApiTest {
// Setup default downloads directory to the scoped tmp directory created for
// the test.
browser()->profile()->GetPrefs()->SetFilePath(
- prefs::kDownloadDefaultDirectory, downloads_dir_.path());
+ prefs::kDownloadDefaultDirectory, downloads_dir_.GetPath());
// Ensure there are no prompts for download during the test.
browser()->profile()->GetPrefs()->SetBoolean(
prefs::kPromptForDownload, false);
@@ -380,7 +380,7 @@ IN_PROC_BROWSER_TEST_F(StreamsPrivateApiTest, DirectDownload) {
// The download's target file path.
base::FilePath target_path =
- downloads_dir_.path().Append(FILE_PATH_LITERAL("download_target.txt"));
+ downloads_dir_.GetPath().Append(FILE_PATH_LITERAL("download_target.txt"));
// Set the downloads parameters.
content::WebContents* web_contents =

Powered by Google App Engine
This is Rietveld 408576698