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

Unified Diff: chrome/browser/extensions/api/management/management_api.cc

Issue 382133003: Refactored ExtensionUninstallDialog to take a NativeWindow instead of a Browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed the BrowserFinder method, and kept the dialog unconstructed until it's shown Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/management/management_api.cc
diff --git a/chrome/browser/extensions/api/management/management_api.cc b/chrome/browser/extensions/api/management/management_api.cc
index 98a48995504b2bf4f6ccdcf145b8c902abad88f9..112bcb82aa00860fd2f46a8f9006a421b4456ee9 100644
--- a/chrome/browser/extensions/api/management/management_api.cc
+++ b/chrome/browser/extensions/api/management/management_api.cc
@@ -611,7 +611,9 @@ bool ManagementUninstallFunctionBase::Uninstall(
if (show_confirm_dialog) {
AddRef(); // Balanced in ExtensionUninstallAccepted/Canceled
extension_uninstall_dialog_.reset(ExtensionUninstallDialog::Create(
- GetProfile(), GetCurrentBrowser(), this));
+ GetProfile(),
+ GetCurrentBrowser()->window()->GetNativeWindow(),
tapted 2014/07/24 07:09:55 So.. I think there's a pre-existing crash lurking
sashab 2014/07/24 08:02:14 Nice! Done. kalman: Is this the crash you were ta
+ this));
if (extension_id() != target_extension_id) {
extension_uninstall_dialog_->ConfirmProgrammaticUninstall(
target_extension, GetExtension());

Powered by Google App Engine
This is Rietveld 408576698