Merge lp:~abreu-alexandre/oxide/file-picker-done-guard into lp:~oxide-developers/oxide/oxide.trunk

Proposed by Alexandre Abreu
Status: Work in progress
Proposed branch: lp:~abreu-alexandre/oxide/file-picker-done-guard
Merge into: lp:~oxide-developers/oxide/oxide.trunk
Diff against target: 13 lines (+3/-0)
1 file modified
shared/browser/oxide_file_picker.cc (+3/-0)
To merge this branch: bzr merge lp:~abreu-alexandre/oxide/file-picker-done-guard
Reviewer Review Type Date Requested Status
Chris Coulson Needs Fixing
Review via email: mp+286374@code.launchpad.net

Commit message

Add guard for file picker done

Description of the change

Add guard for file picker done

To post a comment you must log in.
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Haven't I already reviewed this change with a request to add a test for it?

Revision history for this message
Chris Coulson (chrisccoulson) :
review: Needs Fixing
Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

> Haven't I already reviewed this change with a request to add a test for it?

Did you already? ... I couldn't find another branch for that,

I'll add a test,

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

> > Haven't I already reviewed this change with a request to add a test for it?
>
> Did you already? ... I couldn't find another branch for that,
>
> I'll add a test,

It was your branch :)

The review URL was https://code.launchpad.net/~abreu-alexandre/oxide/filepicker-accept-nullcheck/+merge/264833, but it seems to have disappeared now. I approved it around July last year with a comment that it should be committed with a test.

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

> > > Haven't I already reviewed this change with a request to add a test for
> it?
> >
> > Did you already? ... I couldn't find another branch for that,
> >
> > I'll add a test,
>
> It was your branch :)
>
> The review URL was https://code.launchpad.net/~abreu-alexandre/oxide
> /filepicker-accept-nullcheck/+merge/264833, but it seems to have disappeared
> now. I approved it around July last year with a comment that it should be
> committed with a test.

Right ! ... I re-stumbled on that issue this week, not sure why the branch is not there anymore,

Unmerged revisions

1351. By Alexandre Abreu

Add guard for file picker done()

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'shared/browser/oxide_file_picker.cc'
2--- shared/browser/oxide_file_picker.cc 2015-04-09 22:24:01 +0000
3+++ shared/browser/oxide_file_picker.cc 2016-02-17 17:55:19 +0000
4@@ -47,6 +47,9 @@
5
6 void FilePicker::Done(const std::vector<content::FileChooserFileInfo>& files,
7 content::FileChooserParams::Mode permissions) {
8+ if (! render_view_host_) {
9+ return;
10+ }
11 render_view_host_->FilesSelectedInChooser(files, permissions);
12 render_view_host_ = nullptr;
13 Hide();

Subscribers

People subscribed via source and target branches