Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Issue 13042004: Fix crash of chrome.fileSystem.chooseEntry on Linux. (Closed)

Created:
7 years, 9 months ago by kinaba
Modified:
7 years, 9 months ago
Reviewers:
benwells
CC:
chromium-reviews, tzik+watch_chromium.org, Aaron Boodman, kinuko+watch, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Fix crash of chrome.fileSystem.chooseEntry on Linux. I misunderstood FileSelected() is used only from FileSelectedWithExtraInfo(), but it was wrong. There are situations it is used by itself, hence NOTREACHED() does not hold at all. BUG=224196 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190915

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -7 lines) Patch
M chrome/browser/extensions/api/file_system/file_system_api.cc View 2 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
kinaba
I'm sorry I was dumb. Ben, could you take a look?
7 years, 9 months ago (2013-03-27 08:28:02 UTC) #1
benwells
no need to be sorry. gotta break some eggs to make an omelette... but, sorry ...
7 years, 9 months ago (2013-03-27 09:05:50 UTC) #2
kinaba
On 2013/03/27 09:05:50, benwells wrote: > no need to be sorry. gotta break some eggs ...
7 years, 9 months ago (2013-03-27 09:07:49 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/13042004/1
7 years, 9 months ago (2013-03-27 09:09:21 UTC) #4
commit-bot: I haz the power
Change committed as 190915
7 years, 9 months ago (2013-03-27 12:24:38 UTC) #5
Matt Giuca
On 2013/03/27 12:24:38, I haz the power (commit-bot) wrote: > Change committed as 190915 Thanks ...
7 years, 9 months ago (2013-03-27 23:02:33 UTC) #6
kinaba
Thanks for you to find the bug very quickly. On 2013/03/27 23:02:33, Matt Giuca wrote: ...
7 years, 9 months ago (2013-03-27 23:12:39 UTC) #7
benwells
7 years, 9 months ago (2013-03-27 23:13:42 UTC) #8
Message was sent while issue was closed.
On 2013/03/27 23:02:33, Matt Giuca wrote:
> On 2013/03/27 12:24:38, I haz the power (commit-bot) wrote:
> > Change committed as 190915
> 
> Thanks for a quick response, Kazuhiro. It looks like this will fix (compiling
> now).
> 
> But I'm confused that you've rolled back the point of your original change.
> You've still got the FileSelectedWithExtraInfo method there, but you don't
> appear to call it at all any more. Shouldn't you either fully revert the
> original change (including removing FileSelectedWithExtraInfo and the two new
> #include lines), or keep the call to FileSelectedWithExtraInfo from
FilePicker?
> 
> Lastly, as I said in the bug, I think this patch will need to be merged into
the
> M27 branch, because otherwise this bug is going to make its way into Chrome 27
> stable. (But I'm still confused about the Chrome release process so I'm not
sure
> if this is true.)

The call from FilePicker is only for tests, it normally called by the file
selection dialog implementation. In the basic file selection dialog, it calls
FileSelectedWithExtraInfo. The default implementation of this is to call
FileSelected, but it can be overridden to do something special.

The file selection dialog has different implementations (or overridden
implementations, not sure) on other platform however.

Powered by Google App Engine
This is Rietveld 408576698