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

Issue 3311016: Support accept attribute for an <input type=file> element.... (Closed)

Created:
10 years, 3 months ago by jianli
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Support accept attribute for an <input type=file> element. BUG=54009 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58868

Patch Set 1 : '' #

Total comments: 14

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -49 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_file_select_helper.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_file_select_helper.cc View 1 4 chunks +75 lines, -1 line 0 comments Download
M chrome/common/render_messages_params.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/render_messages_params.cc View 3 chunks +5 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/base/mime_util.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
M net/base/mime_util.cc View 1 5 chunks +225 lines, -47 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
jianli
10 years, 3 months ago (2010-09-07 22:26:10 UTC) #1
darin (slow to review)
http://codereview.chromium.org/3311016/diff/9001/10002 File chrome/browser/tab_contents/tab_contents_file_select_helper.cc (right): http://codereview.chromium.org/3311016/diff/9001/10002#newcode140 chrome/browser/tab_contents/tab_contents_file_select_helper.cc:140: file_type->extensions.push_back(extensions); nit: use .swap here to reduce allocation? http://codereview.chromium.org/3311016/diff/9001/10003 ...
10 years, 3 months ago (2010-09-07 23:09:14 UTC) #2
jianli
All fixed. Thanks. http://codereview.chromium.org/3311016/diff/9001/10002 File chrome/browser/tab_contents/tab_contents_file_select_helper.cc (right): http://codereview.chromium.org/3311016/diff/9001/10002#newcode140 chrome/browser/tab_contents/tab_contents_file_select_helper.cc:140: file_type->extensions.push_back(extensions); On 2010/09/07 23:09:14, darin wrote: ...
10 years, 3 months ago (2010-09-08 00:43:42 UTC) #3
darin (slow to review)
10 years, 3 months ago (2010-09-08 05:18:32 UTC) #4
LGTM... mime_util.cc was a mess to begin with... probably not worth trying to
clean it all up in this CL.  what you've done is a good improvement though.

http://codereview.chromium.org/3311016/diff/19001/20007
File net/base/mime_util.cc (right):

http://codereview.chromium.org/3311016/diff/19001/20007#newcode20
net/base/mime_util.cc:20: namespace {
it would have been OK to put the anonymous namespace within the net namespace
too.

Powered by Google App Engine
This is Rietveld 408576698