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

Issue 2811533002: Exclude files from FileSelectChooser if they can't convert to WebStrings. (Closed)

Created:
3 years, 8 months ago by Charlie Reis
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, Tom Anderson
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Exclude files from FileSelectChooser if they can't convert to WebStrings. BUG=703303 TEST=See bug for repro steps. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2811533002 Cr-Commit-Position: refs/heads/master@{#466118} Committed: https://chromium.googlesource.com/chromium/src/+/e30abe9ad8527585fc6783d8abd24842b07f67b6

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move fix to RFH, add test. #

Total comments: 1

Patch Set 3 : Fix Windows compile. #

Patch Set 4 : Restrict test to Linux. #

Patch Set 5 : Move fix to the renderer. #

Patch Set 6 : Update comment. #

Total comments: 5

Patch Set 7 : Optimize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -1 line) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_browsertest.cc View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 2 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 47 (32 generated)
Charlie Reis
dcheng@, I'm curious if you have thoughts on how to handle this FilePath UTF8 conversion ...
3 years, 8 months ago (2017-04-10 17:39:25 UTC) #7
dcheng
LGTM I don't have any better ideas... =/
3 years, 8 months ago (2017-04-10 20:36:52 UTC) #8
asanka
LGTM. No good ideas here either unless we are open to plumbing a base::FilePath all ...
3 years, 8 months ago (2017-04-11 00:43:31 UTC) #9
asanka
On 2017/04/10 17:39:25, Charlie Reis wrote: > dcheng@, I'm curious if you have thoughts on ...
3 years, 8 months ago (2017-04-11 00:47:15 UTC) #10
Charlie Reis
Ok, thanks for the thoughts! I'm having some trouble finding a way to test this. ...
3 years, 8 months ago (2017-04-13 16:40:19 UTC) #11
asanka
https://codereview.chromium.org/2811533002/diff/1/chrome/browser/file_select_helper.cc File chrome/browser/file_select_helper.cc (right): https://codereview.chromium.org/2811533002/diff/1/chrome/browser/file_select_helper.cc#newcode325 chrome/browser/file_select_helper.cc:325: if (file.local_path.AsUTF8Unsafe().empty()) Shall we move this logic to a ...
3 years, 8 months ago (2017-04-13 17:21:23 UTC) #12
Charlie Reis
Thanks! PTAL. https://codereview.chromium.org/2811533002/diff/1/chrome/browser/file_select_helper.cc File chrome/browser/file_select_helper.cc (right): https://codereview.chromium.org/2811533002/diff/1/chrome/browser/file_select_helper.cc#newcode325 chrome/browser/file_select_helper.cc:325: if (file.local_path.AsUTF8Unsafe().empty()) On 2017/04/13 17:21:22, asanka wrote: ...
3 years, 8 months ago (2017-04-14 19:28:15 UTC) #15
Charlie Reis
Well this is interesting. The new test in Patch Set 2 is failing on at ...
3 years, 8 months ago (2017-04-14 20:06:04 UTC) #20
Charlie Reis
asanka@: Can you take another look? I think the new approach is a bit better. ...
3 years, 8 months ago (2017-04-19 16:06:46 UTC) #31
asanka
LGTM. Comments are minor nits and questions. Feel free to ignore. https://codereview.chromium.org/2811533002/diff/100001/content/browser/frame_host/render_frame_host_manager_browsertest.cc File content/browser/frame_host/render_frame_host_manager_browsertest.cc (right): ...
3 years, 8 months ago (2017-04-20 03:05:11 UTC) #32
Charlie Reis
Thanks! Adding Nick, who suggested the optimization below. https://codereview.chromium.org/2811533002/diff/100001/content/browser/frame_host/render_frame_host_manager_browsertest.cc File content/browser/frame_host/render_frame_host_manager_browsertest.cc (right): https://codereview.chromium.org/2811533002/diff/100001/content/browser/frame_host/render_frame_host_manager_browsertest.cc#newcode1950 content/browser/frame_host/render_frame_host_manager_browsertest.cc:1950: // ...
3 years, 8 months ago (2017-04-20 19:00:38 UTC) #36
asanka
lgtm https://codereview.chromium.org/2811533002/diff/100001/content/browser/frame_host/render_frame_host_manager_browsertest.cc File content/browser/frame_host/render_frame_host_manager_browsertest.cc (right): https://codereview.chromium.org/2811533002/diff/100001/content/browser/frame_host/render_frame_host_manager_browsertest.cc#newcode1950 content/browser/frame_host/render_frame_host_manager_browsertest.cc:1950: // to a WebString (on all platforms but ...
3 years, 8 months ago (2017-04-20 20:24:06 UTC) #40
Charlie Reis
On 2017/04/20 20:24:06, asanka wrote: > lgtm > > https://codereview.chromium.org/2811533002/diff/100001/content/browser/frame_host/render_frame_host_manager_browsertest.cc > File content/browser/frame_host/render_frame_host_manager_browsertest.cc > (right): ...
3 years, 8 months ago (2017-04-20 20:36:15 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2811533002/140001
3 years, 8 months ago (2017-04-20 20:37:38 UTC) #44
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 20:45:38 UTC) #47
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/e30abe9ad8527585fc6783d8abd2...

Powered by Google App Engine
This is Rietveld 408576698