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

Issue 11087071: Making ShowExtensionInstallDialog a callback (Closed)

Created:
8 years, 2 months ago by sail
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, John Grabowski, bulach, Satish, Jay Civelli, Yaron
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : address review comments #

Total comments: 3

Patch Set 3 : a #

Patch Set 4 : changed to callback #

Patch Set 5 : fix comments #

Patch Set 6 : f #

Patch Set 7 : address review comments #

Total comments: 7

Patch Set 8 : address review comments #

Total comments: 8

Patch Set 9 : addrss review comments #

Patch Set 10 : fix android build #

Patch Set 11 : fix android build #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -164 lines) Patch
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api_browsertest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/bundle_installer.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/crx_installer.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_install_dialog.h View 1 2 1 chunk +0 lines, -30 lines 0 comments Download
M chrome/browser/extensions/extension_install_dialog.cc View 1 2 1 chunk +0 lines, -72 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.h View 1 2 3 4 5 6 7 4 chunks +25 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 2 3 4 5 6 7 8 4 chunks +52 lines, -10 lines 2 comments Download
M chrome/browser/extensions/unpacked_installer.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/webstore_installer.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/webstore_standalone_install_browsertest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/webstore_standalone_installer.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/android/extensions/extension_install_dialog_android.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm View 1 2 3 4 5 6 7 2 chunks +28 lines, -18 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_view_controller.mm View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc View 1 2 3 4 5 6 7 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 2 3 4 5 6 7 3 chunks +15 lines, -9 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Aaron Boodman
https://codereview.chromium.org/11087071/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/11087071/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode332 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:332: ExtensionInstallDialog::CreateDefaultImpl()); Can you make it so you can just ...
8 years, 2 months ago (2012-10-11 01:57:57 UTC) #1
sail
https://codereview.chromium.org/11087071/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/11087071/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode332 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:332: ExtensionInstallDialog::CreateDefaultImpl()); On 2012/10/11 01:57:57, Aaron Boodman wrote: > Can ...
8 years, 2 months ago (2012-10-11 02:32:16 UTC) #2
Aaron Boodman
https://codereview.chromium.org/11087071/diff/5001/chrome/browser/extensions/extension_install_dialog.h File chrome/browser/extensions/extension_install_dialog.h (right): https://codereview.chromium.org/11087071/diff/5001/chrome/browser/extensions/extension_install_dialog.h#newcode14 chrome/browser/extensions/extension_install_dialog.h:14: class ExtensionInstallDialog : public base::RefCounted<ExtensionInstallDialog> { RefCounted is a ...
8 years, 2 months ago (2012-10-11 02:42:03 UTC) #3
sail
https://codereview.chromium.org/11087071/diff/5001/chrome/browser/extensions/extension_install_dialog.h File chrome/browser/extensions/extension_install_dialog.h (right): https://codereview.chromium.org/11087071/diff/5001/chrome/browser/extensions/extension_install_dialog.h#newcode14 chrome/browser/extensions/extension_install_dialog.h:14: class ExtensionInstallDialog : public base::RefCounted<ExtensionInstallDialog> { On 2012/10/11 02:42:03, ...
8 years, 2 months ago (2012-10-11 02:46:58 UTC) #4
sail
The newest version of this CL should be good to go. Let me know what ...
8 years, 2 months ago (2012-10-11 04:48:56 UTC) #5
Aaron Boodman
http://codereview.chromium.org/11087071/diff/4016/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): http://codereview.chromium.org/11087071/diff/4016/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode331 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:331: ExtensionInstallPrompt::ShowDialogCallback()); This is super confusing. I thought this was ...
8 years, 2 months ago (2012-10-11 20:28:50 UTC) #6
sail
Addressed all review comments. Please take another look. http://codereview.chromium.org/11087071/diff/4016/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): http://codereview.chromium.org/11087071/diff/4016/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode331 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:331: ExtensionInstallPrompt::ShowDialogCallback()); ...
8 years, 2 months ago (2012-10-11 21:18:47 UTC) #7
Aaron Boodman
https://codereview.chromium.org/11087071/diff/3003/chrome/browser/extensions/extension_install_prompt.cc File chrome/browser/extensions/extension_install_prompt.cc (right): https://codereview.chromium.org/11087071/diff/3003/chrome/browser/extensions/extension_install_prompt.cc#newcode136 chrome/browser/extensions/extension_install_prompt.cc:136: FROM_HERE, base::Bind(&ExtensionInstallPrompt::Delegate::InstallUIProceed, Weird indent. https://codereview.chromium.org/11087071/diff/3003/chrome/browser/extensions/extension_install_prompt.cc#newcode136 chrome/browser/extensions/extension_install_prompt.cc:136: FROM_HERE, base::Bind(&ExtensionInstallPrompt::Delegate::InstallUIProceed, 80 ...
8 years, 2 months ago (2012-10-11 21:44:47 UTC) #8
sail
https://codereview.chromium.org/11087071/diff/3003/chrome/browser/extensions/extension_install_prompt.cc File chrome/browser/extensions/extension_install_prompt.cc (right): https://codereview.chromium.org/11087071/diff/3003/chrome/browser/extensions/extension_install_prompt.cc#newcode136 chrome/browser/extensions/extension_install_prompt.cc:136: FROM_HERE, base::Bind(&ExtensionInstallPrompt::Delegate::InstallUIProceed, On 2012/10/11 21:44:47, Aaron Boodman wrote: > ...
8 years, 2 months ago (2012-10-11 21:49:38 UTC) #9
sail
https://codereview.chromium.org/11087071/diff/3003/chrome/browser/extensions/extension_install_prompt.cc File chrome/browser/extensions/extension_install_prompt.cc (right): https://codereview.chromium.org/11087071/diff/3003/chrome/browser/extensions/extension_install_prompt.cc#newcode586 chrome/browser/extensions/extension_install_prompt.cc:586: On 2012/10/11 21:44:47, Aaron Boodman wrote: > naming: if ...
8 years, 2 months ago (2012-10-11 21:49:55 UTC) #10
Aaron Boodman
lgtm
8 years, 2 months ago (2012-10-11 21:52:07 UTC) #11
sail
On 2012/10/11 21:52:07, Aaron Boodman wrote: > lgtm woot! thanks for the review
8 years, 2 months ago (2012-10-11 21:53:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11087071/3004
8 years, 2 months ago (2012-10-11 21:54:08 UTC) #13
commit-bot: I haz the power
Presubmit check for 11087071-3004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-11 21:54:22 UTC) #14
sail
rdsmith: download/* erg: gtk/* sky: views/*
8 years, 2 months ago (2012-10-11 21:58:21 UTC) #15
sail
android/* jrg@chromium.org bulach@chromium.org satish@chromium.org jcivelli@chromium.org yfriedman@chromium.org
8 years, 2 months ago (2012-10-11 22:00:01 UTC) #16
Elliot Glaysher
gtk lgtm
8 years, 2 months ago (2012-10-11 22:02:04 UTC) #17
sky
LGTM
8 years, 2 months ago (2012-10-11 22:07:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11087071/3004
8 years, 2 months ago (2012-10-11 22:10:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11087071/14001
8 years, 2 months ago (2012-10-11 22:49:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11087071/16004
8 years, 2 months ago (2012-10-11 23:01:27 UTC) #21
commit-bot: I haz the power
Change committed as 161479
8 years, 2 months ago (2012-10-12 02:23:09 UTC) #22
Randy Smith (Not in Mondays)
LGTM :-}.
8 years, 2 months ago (2012-10-12 16:32:28 UTC) #23
Matt Perry
This change causes a crash in some other uses of the ExtensionInstallPrompt (e.g. when an ...
8 years, 2 months ago (2012-10-12 19:28:04 UTC) #24
sail
On 2012/10/12 19:28:04, Matt Perry wrote: > This change causes a crash in some other ...
8 years, 2 months ago (2012-10-12 19:29:20 UTC) #25
Matt Perry
8 years, 2 months ago (2012-10-12 19:33:05 UTC) #26
https://chromiumcodereview.appspot.com/11087071/diff/16004/chrome/browser/ext...
File chrome/browser/extensions/extension_install_prompt.cc (right):

https://chromiumcodereview.appspot.com/11087071/diff/16004/chrome/browser/ext...
chrome/browser/extensions/extension_install_prompt.cc:593:
show_dialog_callback_.Run(parent_, navigator_, delegate_, prompt_);
We still need the callback here when we actually want to show the prompt.

Powered by Google App Engine
This is Rietveld 408576698