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

Issue 1254363004: Move ownership of AppSorting from ExtensionPrefs to ExtensionSystem (Closed)

Created:
5 years, 4 months ago by Marc Treib
Modified:
5 years, 4 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ownership of AppSorting from ExtensionPrefs to ExtensionSystem BUG=None Committed: https://crrev.com/926ee2dccf73a971e1f78e80d09231f8ba19aff3 Cr-Commit-Position: refs/heads/master@{#342093}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 16

Patch Set 3 : review1 #

Total comments: 1

Patch Set 4 : rebase #

Patch Set 5 : fix tests, cleanup #

Total comments: 2

Patch Set 6 : remove set_app_sorting #

Patch Set 7 : fix extensions_unittests #

Total comments: 22

Patch Set 8 : review #

Patch Set 9 : add missing include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -423 lines) Patch
M chrome/browser/extensions/chrome_app_sorting.h View 1 2 3 4 3 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/chrome_app_sorting.cc View 1 2 3 4 11 chunks +22 lines, -41 lines 0 comments Download
M chrome/browser/extensions/chrome_app_sorting_unittest.cc View 1 2 3 4 5 30 chunks +144 lines, -200 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_sync_service.cc View 9 chunks +15 lines, -12 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.h View 1 2 3 4 5 6 7 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.h View 1 2 3 4 5 6 7 4 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 1 2 3 4 5 6 7 7 chunks +29 lines, -11 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 1 2 3 4 5 6 7 6 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.cc View 1 2 3 4 5 5 chunks +12 lines, -21 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -9 lines 0 comments Download
M extensions/browser/app_sorting.h View 1 2 3 4 1 chunk +0 lines, -13 lines 0 comments Download
M extensions/browser/app_window/app_window_geometry_cache_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -5 lines 0 comments Download
M extensions/browser/extension_prefs.h View 1 2 3 4 5 6 chunks +9 lines, -10 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 1 2 3 4 5 7 7 chunks +18 lines, -26 lines 0 comments Download
M extensions/browser/extension_prefs_factory.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/extension_system.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/browser/extensions_browser_client.h View 2 chunks +0 lines, -5 lines 0 comments Download
M extensions/browser/mock_extension_system.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/mock_extension_system.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/null_app_sorting.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/browser/null_app_sorting.cc View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M extensions/browser/test_extensions_browser_client.h View 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/browser/test_extensions_browser_client.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -6 lines 0 comments Download
M extensions/shell/browser/shell_extension_system.h View 1 2 3 4 5 6 7 4 chunks +2 lines, -7 lines 0 comments Download
M extensions/shell/browser/shell_extension_system.cc View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_extensions_browser_client.h View 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_extensions_browser_client.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
Marc Treib
So, I tried moving the ownership of AppSorting to the ExtensionSystem, but now I think ...
5 years, 4 months ago (2015-07-29 09:53:33 UTC) #2
not at google - send to devlin
Thanks for doing this. https://codereview.chromium.org/1254363004/diff/20001/chrome/browser/extensions/chrome_app_sorting.cc File chrome/browser/extensions/chrome_app_sorting.cc (right): https://codereview.chromium.org/1254363004/diff/20001/chrome/browser/extensions/chrome_app_sorting.cc#newcode97 chrome/browser/extensions/chrome_app_sorting.cc:97: if (ExtensionPrefs::Get(browser_context_)->ReadPrefAsInteger( I would hold ...
5 years, 4 months ago (2015-07-29 18:22:03 UTC) #3
Marc Treib
Next iteration, PTAL. Some cleanups remain to be done (removing AppSorting::Initialize and ExtensionPrefs::app_sorting). I'll get ...
5 years, 4 months ago (2015-07-30 14:04:12 UTC) #5
not at google - send to devlin
This lgtm, the part about ExtensionPrefs being explicitly bound to a BrowserContext would clean up ...
5 years, 4 months ago (2015-07-30 18:21:00 UTC) #6
Marc Treib
Argh, turns out I didn't fix all the tests yet, after all :-/ I'll take ...
5 years, 4 months ago (2015-07-31 08:17:49 UTC) #7
Marc Treib
Okay, looks like I've *finally* managed to fix all the tests again. I've also done ...
5 years, 4 months ago (2015-08-03 15:28:04 UTC) #11
not at google - send to devlin
lgtm. The main comment to look for there is the one about "This seems to ...
5 years, 4 months ago (2015-08-03 21:12:08 UTC) #12
Marc Treib
https://codereview.chromium.org/1254363004/diff/170001/chrome/browser/extensions/chrome_extensions_browser_client.cc File chrome/browser/extensions/chrome_extensions_browser_client.cc (right): https://codereview.chromium.org/1254363004/diff/170001/chrome/browser/extensions/chrome_extensions_browser_client.cc#newcode18 chrome/browser/extensions/chrome_extensions_browser_client.cc:18: #include "chrome/browser/extensions/chrome_app_sorting.h" On 2015/08/03 21:12:08, kalman wrote: > You ...
5 years, 4 months ago (2015-08-04 08:36:29 UTC) #13
Marc Treib
+mgiuca FYI: This CL removes some CHECKs you had added for crbug.com/476648 (they've become obsolete ...
5 years, 4 months ago (2015-08-04 09:13:02 UTC) #14
Marc Treib
+phajdan.jr: Can I get an OWNERS review for testing_profile.cc please? Had to move some code ...
5 years, 4 months ago (2015-08-04 09:14:46 UTC) #16
Matt Giuca
> +mgiuca FYI: This CL removes some CHECKs you had added for crbug.com/476648 > (they've ...
5 years, 4 months ago (2015-08-05 00:24:34 UTC) #17
Paweł Hajdan Jr.
chrome/test LGTM
5 years, 4 months ago (2015-08-05 19:08:00 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1254363004/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1254363004/190001
5 years, 4 months ago (2015-08-06 07:37:36 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/67532)
5 years, 4 months ago (2015-08-06 08:07:17 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1254363004/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1254363004/210001
5 years, 4 months ago (2015-08-06 09:20:54 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:210001)
5 years, 4 months ago (2015-08-06 10:55:51 UTC) #27
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 10:56:34 UTC) #28
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/926ee2dccf73a971e1f78e80d09231f8ba19aff3
Cr-Commit-Position: refs/heads/master@{#342093}

Powered by Google App Engine
This is Rietveld 408576698