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

Issue 1711863004: Restrict JavaScript dialogs to 100 characters. (Closed)

Created:
4 years, 10 months ago by Avi (use Gerrit)
Modified:
4 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restrict JavaScript dialogs to 100 characters. BUG=587962 TEST=none; welcome to the new reality

Patch Set 1 #

Patch Set 2 : unload too #

Total comments: 1

Patch Set 3 : palmer #

Total comments: 2

Patch Set 4 : better approach #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -23 lines) Patch
M components/app_modal/javascript_app_modal_dialog.cc View 1 2 3 2 chunks +2 lines, -23 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1711863004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711863004/1
4 years, 10 months ago (2016-02-18 20:49:38 UTC) #2
Avi (use Gerrit)
4 years, 10 months ago (2016-02-18 21:20:31 UTC) #4
palmer
The new reality LGTM.
4 years, 10 months ago (2016-02-18 21:38:19 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1711863004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711863004/20001
4 years, 10 months ago (2016-02-18 21:48:16 UTC) #7
palmer
https://codereview.chromium.org/1711863004/diff/20001/components/app_modal/javascript_dialog_manager.cc File components/app_modal/javascript_dialog_manager.cc (right): https://codereview.chromium.org/1711863004/diff/20001/components/app_modal/javascript_dialog_manager.cc#newcode193 components/app_modal/javascript_dialog_manager.cc:193: gfx::TruncateString(message_text, 100, gfx::CHARACTER_BREAK) + Rather than repeat the code ...
4 years, 10 months ago (2016-02-18 21:51:10 UTC) #8
Avi (use Gerrit)
Chris, ptal.
4 years, 10 months ago (2016-02-18 22:05:41 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1711863004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711863004/40001
4 years, 10 months ago (2016-02-18 22:10:55 UTC) #11
esprehn
Not lgtm, this is not the right layer for this. The truncation should be inside ...
4 years, 10 months ago (2016-02-18 22:53:49 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/52147)
4 years, 10 months ago (2016-02-18 22:56:13 UTC) #15
palmer
|TruncateMessage| LGTM. > Not lgtm, this is not the right layer for this. The truncation ...
4 years, 10 months ago (2016-02-18 22:57:11 UTC) #16
Avi (use Gerrit)
On 2016/02/18 22:57:11, palmer wrote: > |TruncateMessage| LGTM. > > > Not lgtm, this is ...
4 years, 10 months ago (2016-02-18 23:00:24 UTC) #17
esprehn
On 2016/02/18 at 23:00:24, avi wrote: > On 2016/02/18 22:57:11, palmer wrote: > > |TruncateMessage| ...
4 years, 10 months ago (2016-02-18 23:05:04 UTC) #18
Avi (use Gerrit)
On 2016/02/18 23:00:24, Avi wrote: > On 2016/02/18 22:57:11, palmer wrote: > > |TruncateMessage| LGTM. ...
4 years, 10 months ago (2016-02-18 23:26:13 UTC) #19
Peter Kasting
https://codereview.chromium.org/1711863004/diff/40001/components/app_modal/javascript_dialog_manager.cc File components/app_modal/javascript_dialog_manager.cc (right): https://codereview.chromium.org/1711863004/diff/40001/components/app_modal/javascript_dialog_manager.cc#newcode64 components/app_modal/javascript_dialog_manager.cc:64: return gfx::TruncateString(message, 100, gfx::CHARACTER_BREAK); Please use an eliding method ...
4 years, 10 months ago (2016-02-19 02:18:34 UTC) #21
Avi (use Gerrit)
https://codereview.chromium.org/1711863004/diff/40001/components/app_modal/javascript_dialog_manager.cc File components/app_modal/javascript_dialog_manager.cc (right): https://codereview.chromium.org/1711863004/diff/40001/components/app_modal/javascript_dialog_manager.cc#newcode64 components/app_modal/javascript_dialog_manager.cc:64: return gfx::TruncateString(message, 100, gfx::CHARACTER_BREAK); On 2016/02/19 02:18:34, Peter Kasting ...
4 years, 10 months ago (2016-02-19 02:24:42 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1711863004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711863004/60001
4 years, 10 months ago (2016-02-19 02:24:50 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-19 03:28:36 UTC) #26
Avi (use Gerrit)
4 years, 10 months ago (2016-02-19 16:39:19 UTC) #27
On 2016/02/19 03:28:36, commit-bot: I haz the power wrote:
> Dry run: This issue passed the CQ dry run.

I'm going to close this out for now; I have metrics coming to help us make this
decision.

Powered by Google App Engine
This is Rietveld 408576698