Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Fix empty devtool profile #511

Merged
merged 1 commit into from
Feb 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions atom/browser/common_web_contents_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,12 @@ void CommonWebContentsDelegate::OnSaveFileSelected(
const std::string& content,
const std::vector<base::FilePath>& paths) {
DCHECK(!paths.empty());
WriteToFile(paths[0], content);
OnDevToolsSaveToFile(url);
saved_files_[url] = paths[0];
BrowserThread::PostTaskAndReply(
BrowserThread::FILE, FROM_HERE,
base::Bind(&WriteToFile, paths[0], content),
base::Bind(&CommonWebContentsDelegate::OnDevToolsSaveToFile,
base::Unretained(this), url));
}
void CommonWebContentsDelegate::OnSaveFileSelectionCancelled(
const std::string url) {
Expand Down