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

Issue 9369013: Take extensions out of Profile into a profile-keyed service, ExtensionSystem. (Closed)

Created:
8 years, 10 months ago by Yoyo Zhou
Modified:
8 years, 9 months ago
CC:
chromium-reviews, ncarter (slow), akalin, Raghu Simha, kkania, achuith+watch_chromium.org, mihaip+watch_chromium.org, rginda+watch_chromium.org, robertshield, brettw-cc_chromium.org, darin-cc_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

Take extensions out of Profile into a profile-keyed service, ExtensionSystem. Move InitExtensions into ExtensionSystem. Remove a few accessors (ExtensionDevToolsManager, ExtensionMessageService). The others have too many callers to fix in one go. BUG=104095 TEST=Open and close an incognito window; should not crash. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124817

Patch Set 1 #

Total comments: 23

Patch Set 2 : rebase #

Patch Set 3 : erg/mirandac #

Patch Set 4 : prefvaluemap/createdwithservice #

Patch Set 5 : - #

Patch Set 6 : no crashy #

Total comments: 10

Patch Set 7 : aa #

Patch Set 8 : rebase #

Patch Set 9 : - #

Patch Set 10 : rerebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+977 lines, -433 lines) Patch
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_devtools_bridge.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_event_router.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_message_handler.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 13 chunks +40 lines, -38 lines 0 comments Download
A chrome/browser/extensions/extension_system.h View 1 2 3 4 5 6 1 chunk +168 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_system.cc View 1 2 3 4 5 6 1 chunk +284 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_system_factory.h View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_system_factory.cc View 1 2 3 4 5 6 1 chunk +87 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_updater_unittest.cc View 2 chunks +15 lines, -8 lines 0 comments Download
A chrome/browser/extensions/test_extension_system.h View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/extensions/test_extension_system.cc View 1 2 3 1 chunk +99 lines, -0 lines 0 comments Download
M chrome/browser/intents/web_intents_registry_factory.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 7 8 9 7 chunks +18 lines, -33 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl_unittest.cc View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 7 8 9 6 chunks +13 lines, -35 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 6 chunks +3 lines, -30 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 9 chunks +11 lines, -163 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 5 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/extension_data_type_controller.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 1 2 3 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_app_helper.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_extension_helper.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 7 8 9 5 chunks +1 line, -26 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 6 chunks +18 lines, -51 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Yoyo Zhou
erg/mirandac: whichever of you would rather review this, please do. aa: please review for sensibility ...
8 years, 10 months ago (2012-02-09 01:34:55 UTC) #1
Elliot Glaysher
A few notes: - Uncomment the DependsOn lines in web_intents_registry_factory.cc and profile_sync_service_factory.cc. You should be ...
8 years, 10 months ago (2012-02-09 20:10:24 UTC) #2
Miranda Callahan
I concentrated on the code in the Profile classes -- just a couple comments. http://codereview.chromium.org/9369013/diff/1/chrome/browser/profiles/off_the_record_profile_impl.cc ...
8 years, 10 months ago (2012-02-09 22:10:04 UTC) #3
Yoyo Zhou
What are the guidelines on ServiceIsCreatedWithProfile? For instance, I think for OTR profiles, the service ...
8 years, 10 months ago (2012-02-16 21:49:20 UTC) #4
Elliot Glaysher
On 2012/02/16 21:49:20, Yoyo Zhou wrote: > What are the guidelines on ServiceIsCreatedWithProfile? For instance, ...
8 years, 10 months ago (2012-02-21 18:54:50 UTC) #5
Yoyo Zhou
On Tue, Feb 21, 2012 at 10:54 AM, <erg@chromium.org> wrote: > On 2012/02/16 21:49:20, Yoyo ...
8 years, 10 months ago (2012-02-21 20:33:51 UTC) #6
Elliot Glaysher
> It is only a member of ProfileImpl, so it would increase the surface > ...
8 years, 10 months ago (2012-02-21 20:54:26 UTC) #7
Yoyo Zhou
I changed this to use ServiceIsCreatedWithProfile and promoted GetExtensionPrefValueMap to Profile temporarily. http://codereview.chromium.org/9369013/diff/1/chrome/browser/profiles/off_the_record_profile_impl_unittest.cc File chrome/browser/profiles/off_the_record_profile_impl_unittest.cc ...
8 years, 10 months ago (2012-02-22 03:02:04 UTC) #8
Elliot Glaysher
miranda, could you comment? This is start to LG.
8 years, 10 months ago (2012-02-27 20:49:08 UTC) #9
Miranda Callahan
Profile stuff LGTM -- totally agree that the ExtensionPrefValueMap should be a PKS, but not ...
8 years, 10 months ago (2012-02-27 21:59:05 UTC) #10
Aaron Boodman
http://codereview.chromium.org/9369013/diff/28044/chrome/browser/extensions/extension_message_handler.cc File chrome/browser/extensions/extension_message_handler.cc (right): http://codereview.chromium.org/9369013/diff/28044/chrome/browser/extensions/extension_message_handler.cc#newcode45 chrome/browser/extensions/extension_message_handler.cc:45: if (message_service) { Can this really not exist? http://codereview.chromium.org/9369013/diff/28044/chrome/browser/extensions/extension_system.h ...
8 years, 10 months ago (2012-02-28 00:21:21 UTC) #11
Yoyo Zhou
http://codereview.chromium.org/9369013/diff/1/chrome/browser/profiles/off_the_record_profile_impl_unittest.cc File chrome/browser/profiles/off_the_record_profile_impl_unittest.cc (right): http://codereview.chromium.org/9369013/diff/1/chrome/browser/profiles/off_the_record_profile_impl_unittest.cc#newcode151 chrome/browser/profiles/off_the_record_profile_impl_unittest.cc:151: child_profile.get(), false); On 2012/02/27 21:59:05, Miranda Callahan wrote: > ...
8 years, 10 months ago (2012-02-28 02:03:33 UTC) #12
Miranda Callahan
On 2012/02/28 02:03:33, Yoyo Zhou wrote: > http://codereview.chromium.org/9369013/diff/1/chrome/browser/profiles/off_the_record_profile_impl_unittest.cc > File chrome/browser/profiles/off_the_record_profile_impl_unittest.cc (right): > > http://codereview.chromium.org/9369013/diff/1/chrome/browser/profiles/off_the_record_profile_impl_unittest.cc#newcode151 ...
8 years, 9 months ago (2012-02-28 18:55:52 UTC) #13
Yoyo Zhou
On 2012/02/28 18:55:52, Miranda Callahan wrote: > On 2012/02/28 02:03:33, Yoyo Zhou wrote: > > ...
8 years, 9 months ago (2012-02-28 19:48:04 UTC) #14
Miranda Callahan
On 2012/02/28 19:48:04, Yoyo Zhou wrote: > On 2012/02/28 18:55:52, Miranda Callahan wrote: > > ...
8 years, 9 months ago (2012-02-28 19:49:51 UTC) #15
Yoyo Zhou
http://codereview.chromium.org/9369013/diff/28044/chrome/browser/extensions/extension_system.h File chrome/browser/extensions/extension_system.h (right): http://codereview.chromium.org/9369013/diff/28044/chrome/browser/extensions/extension_system.h#newcode31 chrome/browser/extensions/extension_system.h:31: // and incognito Profiles, except for the process manager. ...
8 years, 9 months ago (2012-02-28 22:58:25 UTC) #16
Aaron Boodman
lgtm
8 years, 9 months ago (2012-03-02 03:19:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/9369013/43001
8 years, 9 months ago (2012-03-02 18:02:16 UTC) #18
commit-bot: I haz the power
Can't apply patch for file chrome/browser/profiles/profile_io_data.cc. While running patch -p1 --forward --force; patching file chrome/browser/profiles/profile_io_data.cc ...
8 years, 9 months ago (2012-03-02 18:02:26 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/9369013/51002
8 years, 9 months ago (2012-03-02 18:05:44 UTC) #20
commit-bot: I haz the power
Presubmit check for 9369013-51002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-02 18:05:59 UTC) #21
Yoyo Zhou
akalin: please review for sync.
8 years, 9 months ago (2012-03-02 18:25:06 UTC) #22
akalin
sync lgtm
8 years, 9 months ago (2012-03-02 23:26:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/9369013/53002
8 years, 9 months ago (2012-03-02 23:47:38 UTC) #24
commit-bot: I haz the power
Can't apply patch for file chrome/browser/profiles/profile_impl.cc. While running patch -p1 --forward --force; patching file chrome/browser/profiles/profile_impl.cc ...
8 years, 9 months ago (2012-03-02 23:48:00 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/9369013/57001
8 years, 9 months ago (2012-03-02 23:51:25 UTC) #26
commit-bot: I haz the power
8 years, 9 months ago (2012-03-03 01:52:08 UTC) #27
Change committed as 124817

Powered by Google App Engine
This is Rietveld 408576698