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

Issue 5968009: Change extension unload notification to indicate updates.... (Closed)

Created:
10 years ago by asargent_no_longer_on_chrome
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Erik does not do reviews, brettw-cc_chromium.org, jam, Aaron Boodman, pam+watch_chromium.org, tim (not reviewing), Paweł Hajdan Jr., darin-cc_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Change extension unload notification to indicate updates. When an extension in being unloaded, some listeners want to know if it's because the extension is being updated to a newer version, or disabled. This changes the details sent to include a reason. Also this removes the EXTENSION_UNLOADED_DISABLED notification, since only a small number of places actually cared about the disctinction between EXTENSION_UNLOADED and EXTENSION_UNLOADED_DISABLED, and puts that information into the details as well. BUG=65510 TEST=Should be covered by existing unit & browser tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70104

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 18

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -93 lines) Patch
M chrome/browser/automation/automation_extension_tracker.cc View 1 2 2 chunks +5 lines, -5 lines 1 comment Download
M chrome/browser/automation/automation_provider_observers.cc View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/background_application_list_model.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/background_application_list_model.cc View 3 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/background_contents_service.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/background_mode_manager.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/background_page_tracker.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_disabled_infobar_delegate.cc View 1 2 2 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_infobar_delegate.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_management_api.cc View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_menu_manager.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_menu_manager_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 11 chunks +22 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_toolbar_model.cc View 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extensions_ui.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/extensions/image_loading_tracker.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/extensions/image_loading_tracker_unittest.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/user_script_listener.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/user_script_listener_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/user_script_master.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/gtk/extension_installed_bubble_gtk.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/plugin_service.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/extension_change_processor.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/theme_change_processor.cc View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_installed_bubble.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/extension.h View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/notification_type.h View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
asargent_no_longer_on_chrome
10 years ago (2010-12-23 01:23:24 UTC) #1
Erik does not do reviews
I stopped the review partway through because I think my comments might wind up having ...
10 years ago (2010-12-23 17:05:17 UTC) #2
asargent_no_longer_on_chrome
http://codereview.chromium.org/5968009/diff/25002/chrome/browser/automation/automation_extension_tracker.cc File chrome/browser/automation/automation_extension_tracker.cc (right): http://codereview.chromium.org/5968009/diff/25002/chrome/browser/automation/automation_extension_tracker.cc#newcode28 chrome/browser/automation/automation_extension_tracker.cc:28: if (type != NotificationType::EXTENSION_UNLOADED) On 2010/12/23 17:05:17, Erik Kay ...
10 years ago (2010-12-23 18:53:04 UTC) #3
Erik does not do reviews
10 years ago (2010-12-23 19:25:24 UTC) #4
LGTM

http://codereview.chromium.org/5968009/diff/59001/chrome/browser/automation/a...
File chrome/browser/automation/automation_extension_tracker.cc (right):

http://codereview.chromium.org/5968009/diff/59001/chrome/browser/automation/a...
chrome/browser/automation/automation_extension_tracker.cc:39: // Remove this
extension only if it is uninstalled, not just disabled.
this should just look at the reason rather than trying to figure it out by
itself

Powered by Google App Engine
This is Rietveld 408576698