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

Issue 284103002: Replace "external_install" boolean parameter with explicit enumeration in ExtensionUninstall method. (Closed)

Created:
6 years, 7 months ago by rpaquay
Modified:
6 years, 5 months ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, felt, chrome-apps-syd-reviews_chromium.org, tfarina, dbeam+watch-ntp_chromium.org, haitaol+watch_chromium.org, estade+watch_chromium.org, chromium-apps-reviews_chromium.org, pedrosimonetti+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Replace "external_install" boolean parameter with explicit enumeration in ExtensionUninstall method. The intent is to be able to address issues found in https://code.google.com/p/chromium/issues/detail?id=84556#c39 * This change should be a strict refactoring, and there should be no change of behavior wrt to extension uninstall behavior. * Identify a few specific reasons for extension uninstall and create enum values for them. * Run "git cl format" BUG=84556 TBR=sky@chromium.org for trivial changes under chrome/browser, except chrome/browser/extensions (already lgtm'ed). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281130 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281631

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : Address code review feedback, Rebase. #

Patch Set 4 : Address code review feedback. #

Total comments: 6

Patch Set 5 : Address code review feedback. #

Patch Set 6 : Fix MacOS build. #

Patch Set 7 : Fix MacOS build. #

Patch Set 8 : Address issue exposed by failing unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -92 lines) Patch
M chrome/browser/apps/drive/drive_app_provider.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_browsertest.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/apps/ephemeral_app_service.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/background/background_application_list_model_unittest.cc View 1 2 3 4 4 chunks +22 lines, -11 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_enabled_unittest.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_context_menu_model.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_ui.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_gcm_app_handler_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_message_bubble_controller_unittest.cc View 1 2 3 4 3 chunks +18 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 2 chunks +22 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 5 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 7 chunks +16 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_storage_monitor.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_sync_service.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/external_install_error.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/shared_module_service.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/shared_module_service_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/search/hotword_service.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_extension_helper.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/themes/theme_service_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder_unittest.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/extension_uninstaller.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/search/app_search_provider_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac_browsertest.mm View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_action_context_menu_controller.mm View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/bookmark_app_bubble_view.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
rpaquay
kalman@chromium.org: Please review changes in chrome/browser/apps/* chrome/browser/extensions/* benwells@chromium.org: Please review changes in chrome/browser/ui/app_list/* chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_tab.cc
6 years, 7 months ago (2014-05-14 22:35:53 UTC) #1
not at google - send to devlin
I won't have time to do this today, too many reviews still pending. Devlin could ...
6 years, 7 months ago (2014-05-14 22:47:41 UTC) #2
Devlin
lgtm https://codereview.chromium.org/284103002/diff/20001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/284103002/diff/20001/chrome/browser/extensions/api/management/management_api.cc#newcode584 chrome/browser/extensions/api/management/management_api.cc:584: extension_id_, ExtensionService::kUninstallReasonDefault, NULL); I think ManagementAPI should more ...
6 years, 7 months ago (2014-05-14 23:14:19 UTC) #3
Devlin
On 2014/05/14 23:14:19, D Cronin wrote: > lgtm > > https://codereview.chromium.org/284103002/diff/20001/chrome/browser/extensions/api/management/management_api.cc > File chrome/browser/extensions/api/management/management_api.cc (right): ...
6 years, 7 months ago (2014-05-14 23:14:48 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/284103002/20001
6 years, 7 months ago (2014-05-14 23:16:26 UTC) #5
not at google - send to devlin
drive-by https://codereview.chromium.org/284103002/diff/20001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://codereview.chromium.org/284103002/diff/20001/chrome/browser/extensions/api/management/management_api.cc#newcode584 chrome/browser/extensions/api/management/management_api.cc:584: extension_id_, ExtensionService::kUninstallReasonDefault, NULL); On 2014/05/14 23:14:20, D Cronin ...
6 years, 7 months ago (2014-05-14 23:17:02 UTC) #6
Devlin
The CQ bit was unchecked by rdevlin.cronin@chromium.org
6 years, 7 months ago (2014-05-14 23:18:06 UTC) #7
rpaquay
PTAL. Retrying this change after a few weeks working on other stuff. As a reminder ...
6 years, 5 months ago (2014-06-30 23:16:18 UTC) #8
Devlin
https://codereview.chromium.org/284103002/diff/120001/chrome/browser/extensions/extension_service.h File chrome/browser/extensions/extension_service.h (right): https://codereview.chromium.org/284103002/diff/120001/chrome/browser/extensions/extension_service.h#newcode159 chrome/browser/extensions/extension_service.h:159: UNINSTALL_REASON_DEFAULT, // Usually from testing code Please rename this ...
6 years, 5 months ago (2014-07-01 17:39:10 UTC) #9
rpaquay
https://codereview.chromium.org/284103002/diff/120001/chrome/browser/extensions/extension_service.h File chrome/browser/extensions/extension_service.h (right): https://codereview.chromium.org/284103002/diff/120001/chrome/browser/extensions/extension_service.h#newcode159 chrome/browser/extensions/extension_service.h:159: UNINSTALL_REASON_DEFAULT, // Usually from testing code On 2014/07/01 17:39:10, ...
6 years, 5 months ago (2014-07-01 22:56:53 UTC) #10
Devlin
lgtm
6 years, 5 months ago (2014-07-01 23:02:02 UTC) #11
rpaquay
The CQ bit was checked by rpaquay@chromium.org
6 years, 5 months ago (2014-07-02 21:55:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/284103002/180001
6 years, 5 months ago (2014-07-02 21:58:25 UTC) #13
commit-bot: I haz the power
Change committed as 281130
6 years, 5 months ago (2014-07-03 02:51:26 UTC) #14
Nikita (slow)
A revert of this CL has been created in https://codereview.chromium.org/364183002/ by nkostylev@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-03 09:15:24 UTC) #15
Nikita (slow)
A revert of this CL has been created in https://codereview.chromium.org/369093002/ by nkostylev@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-03 09:18:34 UTC) #16
Nikita (slow)
A revert of this CL has been created in https://codereview.chromium.org/363223004/ by nkostylev@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-03 09:19:52 UTC) #17
Nikita (slow)
Committed revert (via drover) in https://codereview.chromium.org/369863002/
6 years, 5 months ago (2014-07-03 09:25:31 UTC) #18
rpaquay
The CQ bit was checked by rpaquay@chromium.org
6 years, 5 months ago (2014-07-07 20:34:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/284103002/200001
6 years, 5 months ago (2014-07-07 20:36:05 UTC) #20
commit-bot: I haz the power
6 years, 5 months ago (2014-07-08 02:19:10 UTC) #21
Message was sent while issue was closed.
Change committed as 281631

Powered by Google App Engine
This is Rietveld 408576698