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

Issue 128513002: Refactor the code that creates the list of secondary accounts (Closed)

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

Description

Refactor the code that creates the list of secondary accounts BUG=331805 TEST=No visible change. Existing unit tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243712

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : nit. sigh. #

Total comments: 6

Patch Set 4 : alexei review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -38 lines) Patch
M chrome/browser/profiles/profiles_state.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profiles_state.cc View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm View 1 2 3 3 chunks +15 lines, -24 lines 0 comments Download
M chrome/browser/ui/views/profile_chooser_view.cc View 1 2 3 1 chunk +8 lines, -14 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
noms (inactive)
Hi Rachel, I did a small refactor to common code used by the views/mac avatar ...
6 years, 11 months ago (2014-01-08 16:50:27 UTC) #1
rpetterson
LGTM with one nit.
6 years, 11 months ago (2014-01-08 18:12:18 UTC) #2
rpetterson
Eh, here's the nit :) https://codereview.chromium.org/128513002/diff/60001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/128513002/diff/60001/chrome/browser/profiles/profiles_state.cc#newcode117 chrome/browser/profiles/profiles_state.cc:117: accounts.erase(primary_index); You could do ...
6 years, 11 months ago (2014-01-08 18:12:32 UTC) #3
noms (inactive)
https://codereview.chromium.org/128513002/diff/60001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/128513002/diff/60001/chrome/browser/profiles/profiles_state.cc#newcode117 chrome/browser/profiles/profiles_state.cc:117: accounts.erase(primary_index); The original code also explicitly DCHECK'ed that the ...
6 years, 11 months ago (2014-01-08 19:13:21 UTC) #4
noms (inactive)
Hi Scott and Alexei, This CL does a pretty minor refactor and pulls some common ...
6 years, 11 months ago (2014-01-08 19:16:34 UTC) #5
sky
LGTM https://codereview.chromium.org/128513002/diff/60001/chrome/browser/ui/views/profile_chooser_view.cc File chrome/browser/ui/views/profile_chooser_view.cc (right): https://codereview.chromium.org/128513002/diff/60001/chrome/browser/ui/views/profile_chooser_view.cc#newcode801 chrome/browser/ui/views/profile_chooser_view.cc:801: for (size_t i = 0; i < accounts.size(); ...
6 years, 11 months ago (2014-01-08 21:00:15 UTC) #6
noms (inactive)
https://codereview.chromium.org/128513002/diff/60001/chrome/browser/ui/views/profile_chooser_view.cc File chrome/browser/ui/views/profile_chooser_view.cc (right): https://codereview.chromium.org/128513002/diff/60001/chrome/browser/ui/views/profile_chooser_view.cc#newcode801 chrome/browser/ui/views/profile_chooser_view.cc:801: for (size_t i = 0; i < accounts.size(); ++i) ...
6 years, 11 months ago (2014-01-08 21:04:27 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/128513002/diff/200001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/128513002/diff/200001/chrome/browser/profiles/profiles_state.cc#newcode107 chrome/browser/profiles/profiles_state.cc:107: Profile* profile, const std::string& primary_account) { Nit: 1 param ...
6 years, 11 months ago (2014-01-08 21:28:37 UTC) #8
noms (inactive)
https://codereview.chromium.org/128513002/diff/200001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/128513002/diff/200001/chrome/browser/profiles/profiles_state.cc#newcode107 chrome/browser/profiles/profiles_state.cc:107: Profile* profile, const std::string& primary_account) { On 2014/01/08 21:28:37, ...
6 years, 11 months ago (2014-01-08 21:35:13 UTC) #9
Alexei Svitkine (slow)
lgtm thanks
6 years, 11 months ago (2014-01-08 21:44:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/128513002/270001
6 years, 11 months ago (2014-01-08 21:51:39 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 00:41:18 UTC) #12
Message was sent while issue was closed.
Change committed as 243712

Powered by Google App Engine
This is Rietveld 408576698