Fix compilation error on Windows.
This commit is contained in:
parent
4addd8d227
commit
dc9778f0f2
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue