Get it compiling, linking till fails though

This commit is contained in:
Yury Solovyov 2016-10-30 14:56:22 +03:00 committed by Kevin Sawicki
parent d118fed5c2
commit eb889b9b86
2 changed files with 4 additions and 2 deletions

View file

@ -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);
}