Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Using DIR_DEFAULT_DOWNLOADS_SAFE #508

Merged
merged 1 commit into from
Mar 1, 2018
Merged

Conversation

darkdh
Copy link
Member

@darkdh darkdh commented Feb 23, 2018

when DIR_DEFAULT_DOWNLOADS got home directory or desktop

fix brave/browser-laptop#13229
fix brave/browser-laptop#13255

Auditors: @bridiver, @bsclifton

@darkdh darkdh self-assigned this Feb 23, 2018
Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally confirmed fix (thanks again for the help)! Nice job on this one 😄

@bsclifton bsclifton merged commit a433038 into master Mar 1, 2018
@bsclifton bsclifton deleted the browser-laptop-issue-13229 branch March 1, 2018 05:48
bsclifton added a commit that referenced this pull request Mar 1, 2018
bsclifton added a commit that referenced this pull request Mar 1, 2018
@bsclifton bsclifton added this to the 5.0.7 milestone Mar 1, 2018
bsclifton added a commit that referenced this pull request Mar 1, 2018
@@ -86,6 +87,23 @@ struct Converter<file_dialog::DialogSettings> {

namespace {

// Consider downloads 'dangerous' if they go to the home directory on Linux and
// to the desktop on any platform.
bool DownloadPathIsDangerous(const base::FilePath& download_path) {
Copy link
Collaborator

@bridiver bridiver Mar 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @jumde - this will conflict with your PR I think and the safe_browsing changes should take priority

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in your branch please update this to use download_prefs.cc version of DownloadPathIsDangerous

Copy link
Collaborator

@bridiver bridiver Mar 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or remove the whole change if this is no longer necessary

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jumde please remove this changes in #409 once you rebased. Thank you

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unable to export bookmarks Open file doesn't open default download location
3 participants