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
|
// static
|
||||||
mate::Handle<WebContents> WebContents::Create(
|
mate::Handle<WebContents> WebContents::Create(
|
||||||
v8::Isolate* isolate, content::WebContents* web_contents) {
|
v8::Isolate* isolate, content::WebContents* web_contents) {
|
||||||
return CreateHandle(isolate, new WebContents(web_contents));
|
return mate::CreateHandle(isolate, new WebContents(web_contents));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace api
|
} // namespace api
|
||||||
|
|
|
@ -515,7 +515,8 @@ void NativeWindow::DevToolsSaveToFile(const std::string& url,
|
||||||
if (it != saved_files_.end() && !save_as) {
|
if (it != saved_files_.end() && !save_as) {
|
||||||
path = it->second;
|
path = it->second;
|
||||||
} else {
|
} 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue