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

Commit

Permalink
Allow cleanup for forward and backslash on Windows for asar paths
Browse files Browse the repository at this point in the history
Fix #7344

Auditors: @darkdh
  • Loading branch information
bbondy committed May 8, 2017
1 parent f1d0288 commit 14c0cd7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion brave/common/extensions/asar_source_map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ bool ReadFromSearchPaths(const std::vector<base::FilePath>& search_paths,

const base::FilePath GetFilePath(const std::string& name) {
std::vector<std::string> components = base::SplitString(
name, "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
name,
#if defined(OS_WIN)
"/\\",
#else
"/",
#endif
base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);

std::vector<base::FilePath::StringType> path_components;

Expand Down

1 comment on commit 14c0cd7

@darkdh
Copy link
Member

@darkdh darkdh commented on 14c0cd7 May 9, 2017

Choose a reason for hiding this comment

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

++

Please sign in to comment.