Chromium Code Reviews
Help | Chromium Project | Sign in
(257)

Issue 8417012: Refactor loading out of ExtensionService. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
3 years, 7 months ago by Yoyo Zhou
Modified:
3 years, 7 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, mihaip+watch_chromium.org, dcheng, dmazzoni+watch_chromium.org, stevenjb+watch_chromium.org, aboxhall+watch_chromium.org, Erik does not do reviews, kkania, prasadt, jennb, yuzo+watch_chromium.org, jianli, ctguil+watch_chromium.org, zork+watch_chromium.org, hashimoto+watch_chromium.org, Dmitry Titov, davidbarr+watch_chromium.org, robertshield, dtseng+watch_chromium.org, Paweł Hajdan Jr., James Su, davemoore+watch_chromium.org
Visibility:
Public.

Description

Refactor loading out of ExtensionService. - Make ExtensionServiceBackend go away, as it's only used for installing unpacked extensions. Tear this out into UnpackedInstaller task. - Pull out LoadAllExtensions / LoadInstalledExtension into InstalledExtensionLoader task. - Break out component extensions to be handled by ComponentLoader. Coming soon: a unit test for InstalledExtensionLoader. BUG=97883 TEST=existing tests + InstalledExtensionLoaderUnittest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108319

Patch Set 1 #

Total comments: 61

Patch Set 2 : aa's #

Total comments: 2

Patch Set 3 : more #

Patch Set 4 : components #

Total comments: 4

Patch Set 5 : basebase #

Patch Set 6 : crxinstaller #

Patch Set 7 : finally #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1065 lines, -867 lines) Patch
M chrome/browser/autocomplete/autocomplete_browsertest.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/accessibility_util.cc View 1 2 3 4 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/debugger/devtools_sanity_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/download/download_crx_util.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/extensions/component_loader.h View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/browser/extensions/component_loader.cc View 1 2 3 4 5 1 chunk +224 lines, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer.h View 1 2 3 4 5 4 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 14 chunks +19 lines, -76 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 23 chunks +20 lines, -599 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 18 chunks +21 lines, -22 lines 0 comments Download
M chrome/browser/extensions/extension_updater_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/extensions/installed_loader.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/extensions/installed_loader.cc View 1 2 3 4 1 chunk +282 lines, -0 lines 0 comments Download
M chrome/browser/extensions/network_delay_listener_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
A chrome/browser/extensions/unpacked_installer.h View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/extensions/unpacked_installer.cc View 1 2 3 4 5 1 chunk +215 lines, -0 lines 0 comments Download
M chrome/browser/extensions/user_script_listener_unittest.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 8 chunks +6 lines, -127 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/base_panel_browser_test.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/extension_settings_handler.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 3 chunks +10 lines, -4 lines 0 comments Download
Trybot results:
Commit: CQ not working?

Messages

Total messages: 18 (0 generated)
Yoyo Zhou
Sending this out for real. I just realized I hadn't thought about external extensions at ...
3 years, 7 months ago (2011-10-28 00:19:15 UTC) #1
Aaron Boodman
This is sweet. http://codereview.chromium.org/8417012/diff/1/chrome/browser/automation/automation_provider.cc File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/8417012/diff/1/chrome/browser/automation/automation_provider.cc#newcode869 chrome/browser/automation/automation_provider.cc:869: installer->set_prompt_for_plugins(with_ui); fff I think this might ...
3 years, 7 months ago (2011-10-28 22:21:57 UTC) #2
Matt Perry
http://codereview.chromium.org/8417012/diff/1/chrome/browser/extensions/unpacked_installer.cc File chrome/browser/extensions/unpacked_installer.cc (right): http://codereview.chromium.org/8417012/diff/1/chrome/browser/extensions/unpacked_installer.cc#newcode19 chrome/browser/extensions/unpacked_installer.cc:19: class SimpleExtensionLoadPrompt : public ExtensionInstallUI::Delegate { On 2011/10/28 22:21:58, ...
3 years, 7 months ago (2011-10-28 22:28:55 UTC) #3
Aaron Boodman
On 2011/10/28 22:28:55, Matt Perry wrote: > http://codereview.chromium.org/8417012/diff/1/chrome/browser/extensions/unpacked_installer.cc > File chrome/browser/extensions/unpacked_installer.cc (right): > > http://codereview.chromium.org/8417012/diff/1/chrome/browser/extensions/unpacked_installer.cc#newcode19 ...
3 years, 7 months ago (2011-10-28 22:49:56 UTC) #4
Matt Perry
BTW, I defer to aaron for the review, unless you prefer otherwise.
3 years, 7 months ago (2011-10-31 18:49:57 UTC) #5
Yoyo Zhou
http://codereview.chromium.org/8417012/diff/1/chrome/browser/automation/automation_provider.cc File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/8417012/diff/1/chrome/browser/automation/automation_provider.cc#newcode869 chrome/browser/automation/automation_provider.cc:869: installer->set_prompt_for_plugins(with_ui); On 2011/10/28 22:21:58, Aaron Boodman wrote: > fff ...
3 years, 7 months ago (2011-10-31 21:58:15 UTC) #6
Aaron Boodman
http://codereview.chromium.org/8417012/diff/1/chrome/browser/automation/automation_provider.cc File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/8417012/diff/1/chrome/browser/automation/automation_provider.cc#newcode869 chrome/browser/automation/automation_provider.cc:869: installer->set_prompt_for_plugins(with_ui); On 2011/10/31 21:58:15, Yoyo Zhou wrote: > On ...
3 years, 7 months ago (2011-10-31 22:33:25 UTC) #7
Yoyo Zhou
http://codereview.chromium.org/8417012/diff/1/chrome/browser/extensions/component_loader.h File chrome/browser/extensions/component_loader.h (right): http://codereview.chromium.org/8417012/diff/1/chrome/browser/extensions/component_loader.h#newcode1 chrome/browser/extensions/component_loader.h:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
3 years, 7 months ago (2011-11-01 21:50:56 UTC) #8
Aaron Boodman
On 2011/11/01 21:50:56, Yoyo Zhou wrote: > http://codereview.chromium.org/8417012/diff/1/chrome/browser/extensions/component_loader.h > File chrome/browser/extensions/component_loader.h (right): > > http://codereview.chromium.org/8417012/diff/1/chrome/browser/extensions/component_loader.h#newcode1 ...
3 years, 7 months ago (2011-11-01 22:15:14 UTC) #9
Aaron Boodman
LGTM You don't need to wait for another lg from me http://codereview.chromium.org/8417012/diff/17001/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): ...
3 years, 7 months ago (2011-11-01 22:15:47 UTC) #10
Yoyo Zhou
Ok, I'll kill MakeCrxInstaller too and run more try jobs before I submit. http://codereview.chromium.org/8417012/diff/17001/chrome/browser/extensions/component_loader.cc File ...
3 years, 7 months ago (2011-11-01 22:45:06 UTC) #11
Aaron Boodman
On Tue, Nov 1, 2011 at 3:45 PM, <yoz@chromium.org> wrote: > Ok, I'll kill MakeCrxInstaller ...
3 years, 7 months ago (2011-11-01 22:46:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/8417012/20001
3 years, 7 months ago (2011-11-02 15:52:17 UTC) #13
commit-bot: I haz the power
Presubmit check for 8417012-20001 failed and returned exit status 1. Running presubmit commit checks ...
3 years, 7 months ago (2011-11-02 15:52:27 UTC) #14
Yoyo Zhou
Miranda, can you review for profiles/?
3 years, 7 months ago (2011-11-02 16:08:52 UTC) #15
Miranda Callahan
On 2011/11/02 16:08:52, Yoyo Zhou wrote: > Miranda, can you review for profiles/? LGTM for ...
3 years, 7 months ago (2011-11-02 16:24:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/8417012/20001
3 years, 7 months ago (2011-11-02 16:48:08 UTC) #17
commit-bot: I haz the power
3 years, 7 months ago (2011-11-02 18:18:04 UTC) #18
Change committed as 108319
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be