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

Unified Diff: chrome/browser/ui/cocoa/extensions/extension_uninstall_dialog_cocoa.mm

Issue 382133003: Refactored ExtensionUninstallDialog to take a NativeWindow instead of a Browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback 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/ui/cocoa/extensions/extension_uninstall_dialog_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/extensions/extension_uninstall_dialog_cocoa.mm b/chrome/browser/ui/cocoa/extensions/extension_uninstall_dialog_cocoa.mm
index ca9cf2210a25330c86e85409d4e2f353080649e2..b9809a40eb5d663d6262b1a0c3adf4a99dcfe293 100644
--- a/chrome/browser/ui/cocoa/extensions/extension_uninstall_dialog_cocoa.mm
+++ b/chrome/browser/ui/cocoa/extensions/extension_uninstall_dialog_cocoa.mm
@@ -78,3 +78,20 @@ extensions::ExtensionUninstallDialog::Create(Profile* profile,
Delegate* delegate) {
return new ExtensionUninstallDialogCocoa(profile, browser, delegate);
}
+
+// static
+extensions::ExtensionUninstallDialog*
+extensions::ExtensionUninstallDialog::CreateForAppList(Profile* profile,
+ gfx::NativeWindow parent,
+ Delegate* delegate) {
+ // We don't actually need the parent window on Mac - see class description.
+ return new ExtensionUninstallDialogCocoa(profile, NULL, delegate);
+}
+
+// static
+extensions::ExtensionUninstallDialog*
+extensions::ExtensionUninstallDialog::CreateAsStandaloneDialog(
+ Profile* profile,
+ Delegate* delegate) {
+ return new ExtensionUninstallDialogCocoa(profile, NULL, delegate);
+}

Powered by Google App Engine
This is Rietveld 408576698