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

Issue 2037963002: Make ScriptRegexp for email address a member of EmailInputType. (Closed)

Created:
4 years, 6 months ago by tkent
Modified:
4 years, 6 months ago
Reviewers:
haraken, hajimehoshi
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ScriptRegexp for email address a member of EmailInputType. Make it a data member of EmailInputType instead of a function-local static variable. - Move EmailInputType constructor implementation to the .cpp file to void to include ScriptRegexp.h in EmailInputType.h. - Add ScriptRegexp arguments to convertEmailAddressToASCII() and isValidEmailAddress() and add createEmailRegexp() for ease of unit testing. BUG=597530 Committed: https://crrev.com/fc3381f2aa9ccbb200f09d58ce34c22f7027491a Cr-Commit-Position: refs/heads/master@{#397970}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : explicit, simplify ensureEmailRegexp() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -19 lines) Patch
M third_party/WebKit/Source/core/html/forms/EmailInputType.h View 1 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/EmailInputType.cpp View 1 8 chunks +25 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/EmailInputTypeTest.cpp View 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
tkent
hajimehoshi@, would you review this please?
4 years, 6 months ago (2016-06-03 09:37:19 UTC) #5
hajimehoshi
look great with a nit. https://codereview.chromium.org/2037963002/diff/20001/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp File third_party/WebKit/Source/core/html/forms/EmailInputType.cpp (right): https://codereview.chromium.org/2037963002/diff/20001/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp#newcode177 third_party/WebKit/Source/core/html/forms/EmailInputType.cpp:177: m_emailRegexp.reset(createEmailRegexp().release()); I prefer std::move.
4 years, 6 months ago (2016-06-03 10:38:22 UTC) #6
haraken
LGTM https://codereview.chromium.org/2037963002/diff/20001/third_party/WebKit/Source/core/html/forms/EmailInputType.h File third_party/WebKit/Source/core/html/forms/EmailInputType.h (right): https://codereview.chromium.org/2037963002/diff/20001/third_party/WebKit/Source/core/html/forms/EmailInputType.h#newcode48 third_party/WebKit/Source/core/html/forms/EmailInputType.h:48: EmailInputType(HTMLInputElement&); Add explicit.
4 years, 6 months ago (2016-06-03 12:12:29 UTC) #8
tkent
https://codereview.chromium.org/2037963002/diff/20001/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp File third_party/WebKit/Source/core/html/forms/EmailInputType.cpp (right): https://codereview.chromium.org/2037963002/diff/20001/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp#newcode177 third_party/WebKit/Source/core/html/forms/EmailInputType.cpp:177: m_emailRegexp.reset(createEmailRegexp().release()); On 2016/06/03 at 10:38:22, hajimehoshi wrote: > I ...
4 years, 6 months ago (2016-06-06 02:51:55 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2037963002/40001
4 years, 6 months ago (2016-06-06 03:57:57 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 6 months ago (2016-06-06 04:34:24 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 04:35:44 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fc3381f2aa9ccbb200f09d58ce34c22f7027491a
Cr-Commit-Position: refs/heads/master@{#397970}

Powered by Google App Engine
This is Rietveld 408576698