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

Issue 14238037: Made it possible to tell whether an extension is being installed or updated. (Closed)

Created:
7 years, 7 months ago by Matt Giuca
Modified:
7 years, 7 months ago
CC:
chromium-reviews, tzik+watch_chromium.org, sail+watch_chromium.org, Aaron Boodman, pam+watch_chromium.org, tfarina, chromium-apps-reviews_chromium.org, kinuko+watch, chrome-apps-syd-reviews_chromium.org, satorux1, Bernhard Bauer, Devlin, Mattias Nissler (ping if slow), kinuko
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Made it possible to tell whether an extension is being installed or updated. The NOTIFICATION_EXTENSION_INSTALLED message details now include a Boolean flag already_installed, which, if true, implies that the extension is being updated rather than installed. BUG=234041 TBR=kinuko@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198079

Patch Set 1 #

Patch Set 2 : Still create hidden shortcuts on update. #

Patch Set 3 : Split INSTALLED message into INSTALLED and UPDATED so that clients can tell the difference. #

Patch Set 4 : Fix compile warning on Windows (MSVC). #

Patch Set 5 : Remove UPDATED message; instead, pass an extra bool with the updated state. #

Patch Set 6 : Removed Linux auto-shortcut creation (split into a separate CL). #

Patch Set 7 : Fixed compile errors in tests. And some cleanup. #

Patch Set 8 : Fixed compile errors on ChromeOS. #

Patch Set 9 : Test that already_installed is true on update, false on install. #

Total comments: 4

Patch Set 10 : Rename already_installed to is_update. #

Total comments: 2

Patch Set 11 : Fix indentation. #

Patch Set 12 : policy_browsertest: Added InstalledExtensionInfoObserver class to get around dangling pointer issue. #

Total comments: 9

Patch Set 13 : policy_browsertest: Get rid of InstalledExtensionInfoObserver class and just don't check extension. #

Total comments: 2

Patch Set 14 : Added extra check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -46 lines) Patch
M apps/shortcut_manager.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/enterprise_extension_observer.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/screensaver/screensaver_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/commands/command_service.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/commands/command_service_new.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api.cc View 1 2 3 4 2 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_api.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/convert_web_app_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/event_router.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_blacklist_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/extensions/state_store.cc View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/updater/extension_updater.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/webstore_startup_installer_browsertest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/managed_mode/managed_user_service.cc View 1 2 3 4 5 6 1 chunk +9 lines, -3 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/sync_file_system/sync_file_system_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/chrome_notification_types.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Matt Giuca
Hi Ben, This is not quite ready yet (tests), but I just want your opinion ...
7 years, 7 months ago (2013-04-30 06:40:07 UTC) #1
Matt Giuca
Completely rewritten and tests are in. PTAL. Note that this CL no longer has any ...
7 years, 7 months ago (2013-05-01 09:32:58 UTC) #2
sky
On Wed, May 1, 2013 at 2:32 AM, <mgiuca@chromium.org> wrote: > Completely rewritten and tests ...
7 years, 7 months ago (2013-05-01 16:10:57 UTC) #3
sky
chrome/common/chrome_notification_types.h LGTM
7 years, 7 months ago (2013-05-01 16:11:18 UTC) #4
Matt Giuca
On 2013/05/01 16:10:57, sky wrote: > I'm not a good OWNER for any of these ...
7 years, 7 months ago (2013-05-01 23:47:04 UTC) #5
sky
I recommend TBR in that situation. On Wed, May 1, 2013 at 4:47 PM, <mgiuca@chromium.org> ...
7 years, 7 months ago (2013-05-02 00:44:34 UTC) #6
Matt Giuca
On 2013/05/02 00:44:34, sky wrote: > I recommend TBR in that situation. OK, added five ...
7 years, 7 months ago (2013-05-02 01:07:02 UTC) #7
satorux1
c/b/chromeos lgtm
7 years, 7 months ago (2013-05-02 01:15:37 UTC) #8
benwells
all lgtm, with the name change in the new type. https://codereview.chromium.org/14238037/diff/44001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/14238037/diff/44001/chrome/browser/extensions/extension_service.cc#newcode2426 ...
7 years, 7 months ago (2013-05-02 01:40:08 UTC) #9
Matt Giuca
https://codereview.chromium.org/14238037/diff/44001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/14238037/diff/44001/chrome/browser/extensions/extension_service.cc#newcode2426 chrome/browser/extensions/extension_service.cc:2426: bool already_installed = GetInstalledExtension(extension->id()) != NULL; On 2013/05/02 01:40:08, ...
7 years, 7 months ago (2013-05-02 05:40:33 UTC) #10
Devlin
c/b/performance_monitor lgtm, plus one small nit. Cheers :) https://codereview.chromium.org/14238037/diff/76001/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): https://codereview.chromium.org/14238037/diff/76001/chrome/common/extensions/extension.cc#newcode1747 chrome/common/extensions/extension.cc:1747: : ...
7 years, 7 months ago (2013-05-02 06:20:11 UTC) #11
Mattias Nissler (ping if slow)
chrome/browser/policy LGTM
7 years, 7 months ago (2013-05-02 07:05:20 UTC) #12
Bernhard Bauer
chrome/browser/managed_mode LGTM.
7 years, 7 months ago (2013-05-02 07:06:49 UTC) #13
Matt Giuca
Thanks for the speedy reviews, everybody. https://codereview.chromium.org/14238037/diff/76001/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): https://codereview.chromium.org/14238037/diff/76001/chrome/common/extensions/extension.cc#newcode1747 chrome/common/extensions/extension.cc:1747: : extension(extension), On ...
7 years, 7 months ago (2013-05-02 07:17:38 UTC) #14
Matt Giuca
mnissler: Sorry to pull you back but I had to make a major change to ...
7 years, 7 months ago (2013-05-02 09:51:43 UTC) #15
Mattias Nissler (ping if slow)
Joao, what do you think? https://codereview.chromium.org/14238037/diff/86001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/14238037/diff/86001/chrome/browser/policy/policy_browsertest.cc#newcode232 chrome/browser/policy/policy_browsertest.cc:232: // invalid after the ...
7 years, 7 months ago (2013-05-02 11:00:33 UTC) #16
Joao da Silva
https://codereview.chromium.org/14238037/diff/86001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/14238037/diff/86001/chrome/browser/policy/policy_browsertest.cc#newcode232 chrome/browser/policy/policy_browsertest.cc:232: // invalid after the call to Observe(). On 2013/05/02 ...
7 years, 7 months ago (2013-05-02 11:36:29 UTC) #17
Joao da Silva
https://codereview.chromium.org/14238037/diff/86001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/14238037/diff/86001/chrome/browser/policy/policy_browsertest.cc#newcode232 chrome/browser/policy/policy_browsertest.cc:232: // invalid after the call to Observe(). On 2013/05/02 ...
7 years, 7 months ago (2013-05-02 11:42:03 UTC) #18
Matt Giuca
https://codereview.chromium.org/14238037/diff/86001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/14238037/diff/86001/chrome/browser/policy/policy_browsertest.cc#newcode232 chrome/browser/policy/policy_browsertest.cc:232: // invalid after the call to Observe(). OK thanks ...
7 years, 7 months ago (2013-05-03 02:02:09 UTC) #19
Joao da Silva
lgtm from my side after adding line in the comment. Thanks! https://codereview.chromium.org/14238037/diff/91001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): ...
7 years, 7 months ago (2013-05-03 06:38:45 UTC) #20
Matt Giuca
Thanks, Joao.
7 years, 7 months ago (2013-05-03 07:08:09 UTC) #21
Matt Giuca
https://codereview.chromium.org/14238037/diff/91001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/14238037/diff/91001/chrome/browser/policy/policy_browsertest.cc#newcode1311 chrome/browser/policy/policy_browsertest.cc:1311: On 2013/05/03 06:38:45, Joao da Silva wrote: > Check ...
7 years, 7 months ago (2013-05-03 07:09:32 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/14238037/107001
7 years, 7 months ago (2013-05-03 07:09:49 UTC) #23
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) googleurl_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=48901
7 years, 7 months ago (2013-05-03 07:34:36 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/14238037/107001
7 years, 7 months ago (2013-05-03 07:41:29 UTC) #25
commit-bot: I haz the power
7 years, 7 months ago (2013-05-03 10:56:04 UTC) #26
Message was sent while issue was closed.
Change committed as 198079

Powered by Google App Engine
This is Rietveld 408576698