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

Issue 1130353010: Remove deprecated ExtensionService::GetInstalledExtension() usage (Closed)

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

Description

[Extensions] Add GetInstalledExtension() method to ExtensionRegistry This CL adds GetInstalledExtension() method to ExtensionRegistry and uses it instead of deprecated ExtensionService::GetInstalledExtension() in chrome/browser/ui/app_list/. Part of removing the deprecated GetInstalledExtension() call from the ExtensionService. BUG=489687 Committed: https://crrev.com/db93178bcaaf7e99ebb18bd51fa99b2feaf47e1f Cr-Commit-Position: refs/heads/master@{#333036}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review #

Total comments: 2

Patch Set 3 : Changed if to iff #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -37 lines) Patch
M chrome/browser/extensions/extension_service.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_controller_delegate.cc View 1 2 3 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_controller_delegate_impl.cc View 1 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/extension_uninstaller.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/search/app_result.cc View 1 2 4 chunks +4 lines, -6 lines 0 comments Download
M extensions/browser/extension_registry.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/extension_registry.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
babu
5 years, 7 months ago (2015-05-19 18:05:35 UTC) #2
Lei Zhang
Please pick someone from chrome/browser/ui/app_list/OWNERS. Thanks.
5 years, 7 months ago (2015-05-19 18:19:00 UTC) #3
Matt Giuca
Hmm. I don't have any context on this (I can see that in extension_service.h there ...
5 years, 7 months ago (2015-05-20 00:01:02 UTC) #6
stevenjb
https://codereview.chromium.org/1130353010/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc File chrome/browser/ui/app_list/app_list_syncable_service.cc (right): https://codereview.chromium.org/1130353010/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode130 chrome/browser/ui/app_list/app_list_syncable_service.cc:130: return; We should either move this check to service->UninstallExtension(), ...
5 years, 7 months ago (2015-05-26 21:26:25 UTC) #7
Matt Giuca
Ping +kalman.
5 years, 7 months ago (2015-05-27 00:21:47 UTC) #8
Matt Giuca
(see my first comment)
5 years, 7 months ago (2015-05-27 00:22:02 UTC) #9
not at google - send to devlin
It's deprecated because it encourages ExtensionService as a dependency rather than ExtensionRegistry. However, a GetInstalledExtension ...
5 years, 7 months ago (2015-05-27 00:27:45 UTC) #10
Matt Giuca
OK, I'd be happy with that. (I just don't want to introduce lots of small-scale ...
5 years, 7 months ago (2015-05-27 00:38:17 UTC) #11
not at google - send to devlin
Cool. I've wanted a GetInstalledExtension function on previous occasions. Let's add that as part of ...
5 years, 7 months ago (2015-05-27 15:42:19 UTC) #12
babu
https://codereview.chromium.org/1130353010/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc File chrome/browser/ui/app_list/app_list_syncable_service.cc (right): https://codereview.chromium.org/1130353010/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode130 chrome/browser/ui/app_list/app_list_syncable_service.cc:130: return; On 2015/05/26 21:26:25, stevenjb wrote: > We should ...
5 years, 6 months ago (2015-06-04 14:48:11 UTC) #13
babu
On 2015/05/27 15:42:19, kalman wrote: > Cool. I've wanted a GetInstalledExtension function on previous occasions. ...
5 years, 6 months ago (2015-06-04 14:50:56 UTC) #14
stevenjb
ui/app_list lgtm
5 years, 6 months ago (2015-06-04 16:13:27 UTC) #15
not at google - send to devlin
lgtm https://codereview.chromium.org/1130353010/diff/20001/chrome/browser/extensions/extension_service.h File chrome/browser/extensions/extension_service.h (right): https://codereview.chromium.org/1130353010/diff/20001/chrome/browser/extensions/extension_service.h#newcode183 chrome/browser/extensions/extension_service.h:183: // true if the target extension exists. "iff" ...
5 years, 6 months ago (2015-06-04 17:41:33 UTC) #16
babu
https://codereview.chromium.org/1130353010/diff/20001/chrome/browser/extensions/extension_service.h File chrome/browser/extensions/extension_service.h (right): https://codereview.chromium.org/1130353010/diff/20001/chrome/browser/extensions/extension_service.h#newcode183 chrome/browser/extensions/extension_service.h:183: // true if the target extension exists. On 2015/06/04 ...
5 years, 6 months ago (2015-06-05 11:16:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130353010/40001
5 years, 6 months ago (2015-06-05 11:16:47 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-05 12:01:55 UTC) #21
commit-bot: I haz the power
5 years, 6 months ago (2015-06-05 12:03:54 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/db93178bcaaf7e99ebb18bd51fa99b2feaf47e1f
Cr-Commit-Position: refs/heads/master@{#333036}

Powered by Google App Engine
This is Rietveld 408576698