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

Commit

Permalink
Merge pull request #511 from brave/browser-laptop-issue-13254
Browse files Browse the repository at this point in the history
Fix empty devtool profile
  • Loading branch information
bsclifton committed Feb 26, 2018
1 parent 0349033 commit 5e677cb
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit 5e677cb

Please sign in to comment.