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

Issue 12191005: Move Android Date/Time parsing to the renderer (C++ and ICU) instead of the current parsing that ha… (Closed)

Created:
7 years, 10 months ago by Miguel Garcia
Modified:
7 years, 10 months ago
Reviewers:
palmer, bulach, jam, joth
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move Android Date/Time parsing to the renderer (C++ and ICU) instead of the current parsing that happens in the browser (on java using java libraries) BUG=143540 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181364

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 45

Patch Set 6 : Addressed Review comments except renaming the file #

Total comments: 12

Patch Set 7 : #

Patch Set 8 : Rebased view_messages.h and fixed the link issue on the linux bot #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+572 lines, -162 lines) Patch
M content/browser/android/date_time_chooser_android.h View 2 chunks +7 lines, -4 lines 0 comments Download
M content/browser/android/date_time_chooser_android.cc View 1 2 3 4 5 3 chunks +23 lines, -12 lines 0 comments Download
M content/browser/renderer_host/ime_adapter_android.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/ime_adapter_android.cc View 1 chunk +0 lines, -20 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 3 chunks +14 lines, -4 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/DateTimeChooserAndroid.java View 3 chunks +18 lines, -7 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java View 6 chunks +62 lines, -80 lines 0 comments Download
A content/renderer/date_time_formatter.h View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 1 comment Download
A content/renderer/date_time_formatter.cc View 1 2 3 4 5 6 1 chunk +193 lines, -0 lines 0 comments Download
A content/renderer/date_time_formatter_unittest.cc View 1 2 3 4 5 6 1 chunk +149 lines, -0 lines 0 comments Download
M content/renderer/renderer_date_time_picker.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/renderer_date_time_picker.cc View 1 2 3 4 5 2 chunks +27 lines, -26 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Miguel Garcia
During the review of https://chromiumcodereview.appspot.com/11783088 Chris requested that we would not send strings via IPC ...
7 years, 10 months ago (2013-02-04 19:17:45 UTC) #1
palmer
https://codereview.chromium.org/12191005/diff/12001/content/renderer/date_time_formatter.cc File content/renderer/date_time_formatter.cc (right): https://codereview.chromium.org/12191005/diff/12001/content/renderer/date_time_formatter.cc#newcode82 content/renderer/date_time_formatter.cc:82: ui::TextInputType DateTimeFormatter::GetType() { Efficiency: This can be const too, ...
7 years, 10 months ago (2013-02-04 22:14:08 UTC) #2
jam
can you point me to what i'm supposed to review? if just gypi, lgtm
7 years, 10 months ago (2013-02-05 00:08:26 UTC) #3
Miguel Garcia
On 2013/02/05 00:08:26, jam wrote: > can you point me to what i'm supposed to ...
7 years, 10 months ago (2013-02-05 11:48:41 UTC) #4
bulach
thanks miguel! some drive by comments and style nits, the android side looks fine once ...
7 years, 10 months ago (2013-02-05 11:54:55 UTC) #5
jam
lgtm
7 years, 10 months ago (2013-02-05 15:52:02 UTC) #6
Miguel Garcia
Thanks you all for the quick review. https://codereview.chromium.org/12191005/diff/12001/content/browser/web_contents/web_contents_impl.h File content/browser/web_contents/web_contents_impl.h (right): https://codereview.chromium.org/12191005/diff/12001/content/browser/web_contents/web_contents_impl.h#newcode35 content/browser/web_contents/web_contents_impl.h:35: struct ViewHostMsg_DateTimeValue_Params; ...
7 years, 10 months ago (2013-02-05 17:44:40 UTC) #7
palmer
Starting to L pretty G. When you hammer down the last few nails, I should ...
7 years, 10 months ago (2013-02-05 19:57:51 UTC) #8
Miguel Garcia
https://codereview.chromium.org/12191005/diff/22002/content/renderer/date_time_formatter.cc File content/renderer/date_time_formatter.cc (right): https://codereview.chromium.org/12191005/diff/22002/content/renderer/date_time_formatter.cc#newcode16 content/renderer/date_time_formatter.cc:16: On 2013/02/05 19:57:51, Chris P. wrote: > Nit: Get ...
7 years, 10 months ago (2013-02-06 11:39:44 UTC) #9
Miguel Garcia
Bots failing because LKGR is behind, please disregard On 2013/02/06 11:39:44, Miguel Garcia wrote: > ...
7 years, 10 months ago (2013-02-06 15:17:00 UTC) #10
Miguel Garcia
https://codereview.chromium.org/12191005/diff/12001/content/renderer/date_time_formatter.h File content/renderer/date_time_formatter.h (right): https://codereview.chromium.org/12191005/diff/12001/content/renderer/date_time_formatter.h#newcode24 content/renderer/date_time_formatter.h:24: class DateTimeFormatter { Actually Date inputs are not text ...
7 years, 10 months ago (2013-02-07 10:55:32 UTC) #11
Miguel Garcia
Friendly ping On 2013/02/07 10:55:32, Miguel Garcia wrote: > https://codereview.chromium.org/12191005/diff/12001/content/renderer/date_time_formatter.h > File content/renderer/date_time_formatter.h (right): > ...
7 years, 10 months ago (2013-02-07 14:36:27 UTC) #12
bulach
android lgtm yeah, I can see your argument here.. it's still not a generic DateTimeFormatter ...
7 years, 10 months ago (2013-02-07 14:44:26 UTC) #13
palmer
LGTM. Thanks!
7 years, 10 months ago (2013-02-07 19:10:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/12191005/28001
7 years, 10 months ago (2013-02-07 19:12:54 UTC) #15
commit-bot: I haz the power
Change committed as 181364
7 years, 10 months ago (2013-02-07 21:14:09 UTC) #16
joth
7 years, 10 months ago (2013-02-07 21:49:42 UTC) #17
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12191005/diff/28001/content/renderer/d...
File content/renderer/date_time_formatter.h (right):

https://chromiumcodereview.appspot.com/12191005/diff/28001/content/renderer/d...
content/renderer/date_time_formatter.h:38: const std::string&
GetFormattedValue() const;
this needs to #include <string>

Powered by Google App Engine
This is Rietveld 408576698