Skip to content

Commit

Permalink
Remove unneeded AddRef/Release calls handled by baes::Bind
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Feb 24, 2017
1 parent 6837ec8 commit 7428b6a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions atom/browser/web_dialog_helper.cc
Expand Up @@ -36,8 +36,6 @@ class FileSelectHelper : public base::RefCounted<FileSelectHelper>,
auto web_contents = content::WebContents::FromRenderFrameHost(
render_frame_host);
content::WebContentsObserver::Observe(web_contents);
// Add ref that will be released when the dialog is completed
AddRef();
}

void ShowOpenDialog(const file_dialog::DialogSettings& settings) {
Expand Down Expand Up @@ -90,7 +88,6 @@ class FileSelectHelper : public base::RefCounted<FileSelectHelper>,
const std::vector<content::FileChooserFileInfo>& file_info) {
if (render_frame_host_)
render_frame_host_->FilesSelectedInChooser(file_info, mode_);
Release();
}

// content::WebContentsObserver:
Expand Down

0 comments on commit 7428b6a

Please sign in to comment.