Fix compilation on Windows
This commit is contained in:
parent
237bd6790b
commit
1043f07b42
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ class BundledDataSource : public content::URLDataSource {
|
|||
}
|
||||
|
||||
std::string GetMimeType(const std::string& path) const override {
|
||||
auto file = base::FilePath(PathWithoutParams(path));
|
||||
base::FilePath::StringType ext = file.Extension();
|
||||
base::FilePath::StringType ext =
|
||||
base::FilePath::FromUTF8Unsafe(PathWithoutParams(path)).Extension();
|
||||
std::string mime_type;
|
||||
if (!ext.empty() &&
|
||||
net::GetWellKnownMimeTypeFromExtension(ext.substr(1), &mime_type))
|
||||
|
|
Loading…
Reference in a new issue