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 {
|
std::string GetMimeType(const std::string& path) const override {
|
||||||
auto file = base::FilePath(PathWithoutParams(path));
|
base::FilePath::StringType ext =
|
||||||
base::FilePath::StringType ext = file.Extension();
|
base::FilePath::FromUTF8Unsafe(PathWithoutParams(path)).Extension();
|
||||||
std::string mime_type;
|
std::string mime_type;
|
||||||
if (!ext.empty() &&
|
if (!ext.empty() &&
|
||||||
net::GetWellKnownMimeTypeFromExtension(ext.substr(1), &mime_type))
|
net::GetWellKnownMimeTypeFromExtension(ext.substr(1), &mime_type))
|
||||||
|
|
Loading…
Reference in a new issue