MakePathAbsolute -> NormalizePath
This commit is contained in:
parent
97930fcd84
commit
0dba0b9cad
1 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ bool PopulateImageSkiaRepsFromPath(gfx::ImageSkia* image,
|
||||||
return succeed;
|
return succeed;
|
||||||
}
|
}
|
||||||
|
|
||||||
base::FilePath MakePathAbsolute(const base::FilePath& path) {
|
base::FilePath NormalizePath(const base::FilePath& path) {
|
||||||
if (!path.ReferencesParent()) {
|
if (!path.ReferencesParent()) {
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
@ -269,7 +269,7 @@ mate::Handle<NativeImage> NativeImage::CreateFromJPEG(
|
||||||
mate::Handle<NativeImage> NativeImage::CreateFromPath(
|
mate::Handle<NativeImage> NativeImage::CreateFromPath(
|
||||||
v8::Isolate* isolate, const base::FilePath& path) {
|
v8::Isolate* isolate, const base::FilePath& path) {
|
||||||
gfx::ImageSkia image_skia;
|
gfx::ImageSkia image_skia;
|
||||||
base::FilePath absolute_path = MakePathAbsolute(path);
|
base::FilePath absolute_path = NormalizePath(path);
|
||||||
|
|
||||||
if (absolute_path.MatchesExtension(FILE_PATH_LITERAL(".ico"))) {
|
if (absolute_path.MatchesExtension(FILE_PATH_LITERAL(".ico"))) {
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
|
|
Loading…
Reference in a new issue