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

Issue 313203004: Make ExtensionInstallPrompt::Prompt ref-counted (Closed)

Created:
6 years, 6 months ago by Devlin
Modified:
6 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tfarina, yoshiki+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Make ExtensionInstallPrompt::Prompt ref-counted We pass around ExtensionInstallPrompt::Prompt a lot by value and reference, but should probably just have it ref-counted instead. It's an expensive object to copy (which we do far too much right now), and passing around weak references is dangerous (and leads to crashing). TBR=ben@chromium.org (c/b/ui minus c/b/ui/cocoa) TBR=kinaba@chromium.org (c/b/chromeos/file_manager) TBR=koz@chromium.org (c/b/apps) All TBRs are for strictly mechanical changes. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277823

Patch Set 1 #

Patch Set 2 : Latest master #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : Latest master for CQ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -215 lines) Patch
M chrome/browser/apps/ephemeral_app_launcher.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_launcher.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_manager/app_installer.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_manager/app_installer.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.h View 8 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 11 chunks +31 lines, -26 lines 0 comments Download
M chrome/browser/extensions/external_install_ui.cc View 7 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/webstore_install_with_prompt.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/webstore_install_with_prompt.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/extensions/webstore_standalone_installer.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/webstore_standalone_installer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/webstore_startup_installer.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_startup_installer.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/android/extensions/extension_install_dialog_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm View 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller_browsertest.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.mm View 1 chunk +13 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_view_controller.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_view_controller.mm View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_view_controller_unittest.mm View 1 9 chunks +28 lines, -27 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.mm View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller_browsertest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 30 chunks +76 lines, -76 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Devlin
Yoyo, please take a look. I think this is the reason for crbug.com/380739, and the ...
6 years, 6 months ago (2014-06-04 22:01:25 UTC) #1
Yoyo Zhou
I'm not thrilled about more ref-counting, but LGTM, because we don't seem to be able ...
6 years, 6 months ago (2014-06-04 22:14:48 UTC) #2
Devlin
+shess. Mind taking a look at c/b/ui/cocoa? There shouldn't be any functional changes, but it's ...
6 years, 6 months ago (2014-06-11 13:33:54 UTC) #3
Devlin
On 2014/06/11 13:33:54, Devlin wrote: > +shess. Mind taking a look at c/b/ui/cocoa? There shouldn't ...
6 years, 6 months ago (2014-06-16 19:10:03 UTC) #4
Scott Hess - ex-Googler
lgtm for cocoa/, minor nits, feel free to send me another review if you decide ...
6 years, 6 months ago (2014-06-16 19:29:04 UTC) #5
Devlin
https://codereview.chromium.org/313203004/diff/100001/chrome/browser/ui/cocoa/extensions/extension_install_view_controller.mm File chrome/browser/ui/cocoa/extensions/extension_install_view_controller.mm (right): https://codereview.chromium.org/313203004/diff/100001/chrome/browser/ui/cocoa/extensions/extension_install_view_controller.mm#newcode593 chrome/browser/ui/cocoa/extensions/extension_install_view_controller.mm:593: (scoped_refptr<ExtensionInstallPrompt::Prompt>)prompt { On 2014/06/16 19:29:04, shess wrote: > Since ...
6 years, 6 months ago (2014-06-17 16:05:27 UTC) #6
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 6 months ago (2014-06-17 16:10:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/313203004/140001
6 years, 6 months ago (2014-06-17 16:11:49 UTC) #8
Devlin
The CQ bit was unchecked by rdevlin.cronin@chromium.org
6 years, 6 months ago (2014-06-17 16:12:46 UTC) #9
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 6 months ago (2014-06-17 16:15:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/313203004/140001
6 years, 6 months ago (2014-06-17 16:16:05 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-17 18:50:26 UTC) #12
Message was sent while issue was closed.
Change committed as 277823

Powered by Google App Engine
This is Rietveld 408576698