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

Issue 474123002: [Mac, Win] Don't allow blank spaces in profile names in the new avatar bubble. (Closed)

Created:
6 years, 4 months ago by noms (inactive)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, tfarina
Project:
chromium
Visibility:
Public.

Description

[Mac, Win] Don't allow blank spaces in profile names in the new avatar bubble. TrimString ftw. BUG=403753 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290099

Patch Set 1 #

Total comments: 5

Patch Set 2 : use TrimWhitespace ftw #

Total comments: 4

Patch Set 3 : alexei nits. unfortunately a rebase sneaked in :( #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -4 lines) Patch
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 1 chunk +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
noms (inactive)
Two line CLs for everyone! scott: views alexei: cocoa. Thanks! :)
6 years, 4 months ago (2014-08-14 23:58:26 UTC) #1
sky
https://codereview.chromium.org/474123002/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/474123002/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode803 chrome/browser/ui/views/profiles/profile_chooser_view.cc:803: base::TrimString(new_profile_name, base::ASCIIToUTF16(" "), Might it be possible to get ...
6 years, 4 months ago (2014-08-15 04:38:41 UTC) #2
noms (inactive)
https://codereview.chromium.org/474123002/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/474123002/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode803 chrome/browser/ui/views/profiles/profile_chooser_view.cc:803: base::TrimString(new_profile_name, base::ASCIIToUTF16(" "), On 2014/08/15 04:38:41, sky wrote: > ...
6 years, 4 months ago (2014-08-15 13:32:41 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/474123002/diff/20001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/474123002/diff/20001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode630 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:630: base::TrimString(newProfileName, base::ASCIIToUTF16(" "), &newProfileName); Why not use base::TrimWhitespace() instead, ...
6 years, 4 months ago (2014-08-15 17:25:26 UTC) #4
noms (inactive)
Oh, there's a better function! Thanks Alexei! https://codereview.chromium.org/474123002/diff/20001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/474123002/diff/20001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode630 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:630: base::TrimString(newProfileName, base::ASCIIToUTF16(" ...
6 years, 4 months ago (2014-08-15 17:37:40 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/474123002/diff/40001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/474123002/diff/40001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode635 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:635: [self setTitle:originalText]; If this really needs to be |originalText| ...
6 years, 4 months ago (2014-08-15 17:40:47 UTC) #6
noms (inactive)
Alexei: done! I'm sorry for the rebase that also when in this patch. :( https://codereview.chromium.org/474123002/diff/40001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm ...
6 years, 4 months ago (2014-08-15 18:14:28 UTC) #7
Alexei Svitkine (slow)
LGTM, new code is much clearer, thanks!
6 years, 4 months ago (2014-08-15 18:26:26 UTC) #8
noms (inactive)
sky: ping
6 years, 4 months ago (2014-08-15 19:14:19 UTC) #9
sky
LGTM https://codereview.chromium.org/474123002/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/474123002/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode803 chrome/browser/ui/views/profiles/profile_chooser_view.cc:803: base::TrimString(new_profile_name, base::ASCIIToUTF16(" "), On 2014/08/15 13:32:41, Monica Dinculescu ...
6 years, 4 months ago (2014-08-15 19:28:37 UTC) #10
noms (inactive)
The CQ bit was checked by noms@chromium.org
6 years, 4 months ago (2014-08-15 19:28:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/474123002/60001
6 years, 4 months ago (2014-08-15 19:32:17 UTC) #12
commit-bot: I haz the power
6 years, 4 months ago (2014-08-16 05:58:43 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (60001) as 290099

Powered by Google App Engine
This is Rietveld 408576698