Get it compiling, linking till fails though
This commit is contained in:
parent
d118fed5c2
commit
eb889b9b86
2 changed files with 4 additions and 2 deletions
|
@ -308,7 +308,9 @@ void NativeImage::CreateFromFileIcon(v8::Isolate* isolate,
|
|||
const IconLoadedCallback& callback) {
|
||||
IconLoader::IconSize icon_size = IconLoader::IconSize::NORMAL;
|
||||
float scale_factor = 1.0f;
|
||||
auto onready = base::Bind(&NativeImage::OnIconLoaded, isolate, callback);
|
||||
auto onready = base::Bind(&NativeImage::OnIconLoaded,
|
||||
base::Unretained(isolate),
|
||||
callback);
|
||||
FileIconFetcher::FetchFileIcon(path, scale_factor, icon_size, onready);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue