mirror of
https://github.com/electron/electron.git
synced 2026-01-11 00:18:02 -05:00
Fix compilation error on Windows.
This commit is contained in:
@@ -198,7 +198,7 @@ void WebContents::OnRendererMessageSync(const string16& channel,
|
||||
// static
|
||||
mate::Handle<WebContents> WebContents::Create(
|
||||
v8::Isolate* isolate, content::WebContents* web_contents) {
|
||||
return CreateHandle(isolate, new WebContents(web_contents));
|
||||
return mate::CreateHandle(isolate, new WebContents(web_contents));
|
||||
}
|
||||
|
||||
} // namespace api
|
||||
|
||||
@@ -515,7 +515,8 @@ void NativeWindow::DevToolsSaveToFile(const std::string& url,
|
||||
if (it != saved_files_.end() && !save_as) {
|
||||
path = it->second;
|
||||
} else {
|
||||
if (!file_dialog::ShowSaveDialog(this, url, base::FilePath(url), &path))
|
||||
base::FilePath default_path(base::FilePath::FromUTF8Unsafe(url));
|
||||
if (!file_dialog::ShowSaveDialog(this, url, default_path, &path))
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user