We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 372ecf3 commit 98809d8Copy full SHA for 98809d8
shell/browser/electron_browser_client.cc
@@ -1017,12 +1017,10 @@ ElectronBrowserClient::GetPlatformNotificationService(
1017
}
1018
1019
base::FilePath ElectronBrowserClient::GetDefaultDownloadDirectory() {
1020
- // ~/Downloads
1021
- base::FilePath path;
1022
- if (base::PathService::Get(base::DIR_HOME, &path))
1023
- path = path.Append(FILE_PATH_LITERAL("Downloads"));
1024
-
1025
- return path;
+ base::FilePath download_path;
+ if (base::PathService::Get(chrome::DIR_DEFAULT_DOWNLOADS, &download_path))
+ return download_path;
+ return base::FilePath();
1026
1027
1028
scoped_refptr<network::SharedURLLoaderFactory>
0 commit comments