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

Issue 1631373003: Refactor ProfileInfoCache in c/b/ui/app_list (Closed)

Created:
4 years, 11 months ago by lwchkg
Modified:
4 years, 10 months ago
CC:
chromium-reviews, tfarina, Matt Giuca, tapted
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor ProfileInfoCache in c/b/ui/app_list ProfileInfoCache is being refactored into ProfileAttributesStorage and ProfileAttributesEntry, which use profile paths instead of numerical indices in the interface. See https://codereview.chromium.org/1599013002/ for details. This CL adds an comparator for sorting ProfileAttributesEntry, and also converts the calls in c/b/ui/app_list to use the new interface. BUG=305720 Committed: https://crrev.com/b7904c220a3c17b729628c8ca9e97b35c6233d37 Cr-Commit-Position: refs/heads/master@{#374726}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Respond to comments, add sorting of ProfileAttributesEntry #

Total comments: 20

Patch Set 3 : Changed sorting API, respond to comments. #

Patch Set 4 : Change to std::cref #

Total comments: 2

Patch Set 5 : Fix errors #

Total comments: 7

Patch Set 6 : Rebased, moved sorting code to GetAllProfilesAttributesSortedByName #

Total comments: 3

Patch Set 7 : Rebase, respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -49 lines) Patch
M chrome/browser/profiles/profile_attributes_entry.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_attributes_entry.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_attributes_storage.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 4 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_impl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_impl.cc View 1 2 3 4 5 4 chunks +15 lines, -13 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_mac.mm View 1 2 3 4 5 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 2 3 4 5 6 5 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/ui/app_list/profile_store.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile_store.h View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile_store.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (13 generated)
lwchkg
Dear Anthony and Mike, PTAL and comment. I've marked a few places that need special ...
4 years, 11 months ago (2016-01-27 22:37:19 UTC) #3
anthonyvd
Great work, thanks! Maybe explain a little more in the CL description why we're making ...
4 years, 10 months ago (2016-01-29 15:16:34 UTC) #4
lwchkg
Just some replies. I'll make a patch tomorrow. https://codereview.chromium.org/1631373003/diff/1/chrome/browser/profiles/profile_attributes_storage_observer.h File chrome/browser/profiles/profile_attributes_storage_observer.h (right): https://codereview.chromium.org/1631373003/diff/1/chrome/browser/profiles/profile_attributes_storage_observer.h#newcode10 chrome/browser/profiles/profile_attributes_storage_observer.h:10: using ...
4 years, 10 months ago (2016-01-29 19:01:48 UTC) #5
lwchkg
New patch updated. If things looks good I'll add the unit test for sorting, and ...
4 years, 10 months ago (2016-01-31 16:47:35 UTC) #7
lwchkg
https://codereview.chromium.org/1631373003/diff/20001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/1631373003/diff/20001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode120 chrome/browser/ui/app_list/app_list_view_delegate.cc:120: for (const auto& entry : entries) { Should remove ...
4 years, 10 months ago (2016-01-31 19:12:22 UTC) #8
tapted
(drive-by, but I think you'll need an app_list OWNER anyway :). I actually just started ...
4 years, 10 months ago (2016-01-31 23:04:37 UTC) #10
lwchkg
tapted: Thanks for review! (You're in the CC list right at the start, so it ...
4 years, 10 months ago (2016-02-01 06:31:20 UTC) #11
tapted
https://codereview.chromium.org/1631373003/diff/20001/chrome/browser/profiles/profile_attributes_entry.cc File chrome/browser/profiles/profile_attributes_entry.cc (right): https://codereview.chromium.org/1631373003/diff/20001/chrome/browser/profiles/profile_attributes_entry.cc#newcode24 chrome/browser/profiles/profile_attributes_entry.cc:24: return false; // If collator is absent sorting fails ...
4 years, 10 months ago (2016-02-02 00:20:56 UTC) #12
lwchkg
Spent more than one day trying solutions and... failed a lot. And finally got two ...
4 years, 10 months ago (2016-02-03 17:18:38 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1631373003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1631373003/60001
4 years, 10 months ago (2016-02-03 17:26:16 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/16848) linux_chromium_rel_ng on ...
4 years, 10 months ago (2016-02-03 17:38:06 UTC) #17
lwchkg
Finally fixed the build errors. Can you please start another CQ dry run for me? ...
4 years, 10 months ago (2016-02-04 14:27:06 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1631373003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1631373003/80001
4 years, 10 months ago (2016-02-04 18:33:35 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/17500) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years, 10 months ago (2016-02-04 18:38:03 UTC) #22
tapted
looks like you need to rebase as well https://codereview.chromium.org/1631373003/diff/60001/chrome/browser/profiles/profile_attributes_entry.cc File chrome/browser/profiles/profile_attributes_entry.cc (right): https://codereview.chromium.org/1631373003/diff/60001/chrome/browser/profiles/profile_attributes_entry.cc#newcode15 chrome/browser/profiles/profile_attributes_entry.cc:15: DCHECK(U_SUCCESS(error_code)); ...
4 years, 10 months ago (2016-02-04 23:10:36 UTC) #23
lwchkg
Rebased and compiling (will take a few hours). Maybe I should buy a SSD ASAP. ...
4 years, 10 months ago (2016-02-05 00:56:22 UTC) #24
anthonyvd
https://codereview.chromium.org/1631373003/diff/80001/chrome/browser/profiles/profile_attributes_entry.h File chrome/browser/profiles/profile_attributes_entry.h (right): https://codereview.chromium.org/1631373003/diff/80001/chrome/browser/profiles/profile_attributes_entry.h#newcode17 chrome/browser/profiles/profile_attributes_entry.h:17: #include "third_party/icu/source/common/unicode/uversion.h" On 2016/02/05 00:56:22, lwchkg wrote: > On ...
4 years, 10 months ago (2016-02-05 15:36:31 UTC) #25
lwchkg
Dear all, New patch uploaded. PTAL. (As usual, can you help by starting a CQ ...
4 years, 10 months ago (2016-02-05 16:59:52 UTC) #27
anthonyvd
c/b/profiles/* lgtm % small nit https://codereview.chromium.org/1631373003/diff/120001/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): https://codereview.chromium.org/1631373003/diff/120001/chrome/browser/profiles/profile_info_cache.cc#newcode189 chrome/browser/profiles/profile_info_cache.cc:189: if (a_path.length() != b_path.length()) ...
4 years, 10 months ago (2016-02-08 21:58:42 UTC) #28
tapted
c/b/ui/app_list/* lgtm https://codereview.chromium.org/1631373003/diff/120001/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): https://codereview.chromium.org/1631373003/diff/120001/chrome/browser/profiles/profile_info_cache.cc#newcode189 chrome/browser/profiles/profile_info_cache.cc:189: if (a_path.length() != b_path.length()) On 2016/02/08 21:58:42, ...
4 years, 10 months ago (2016-02-08 22:33:36 UTC) #29
lwchkg
https://codereview.chromium.org/1631373003/diff/120001/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): https://codereview.chromium.org/1631373003/diff/120001/chrome/browser/profiles/profile_info_cache.cc#newcode189 chrome/browser/profiles/profile_info_cache.cc:189: if (a_path.length() != b_path.length()) On 2016/02/08 22:33:36, tapted wrote: ...
4 years, 10 months ago (2016-02-10 19:44:20 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1631373003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1631373003/140001
4 years, 10 months ago (2016-02-10 19:44:21 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 10 months ago (2016-02-10 21:24:03 UTC) #35
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:31:07 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b7904c220a3c17b729628c8ca9e97b35c6233d37
Cr-Commit-Position: refs/heads/master@{#374726}

Powered by Google App Engine
This is Rietveld 408576698