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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_uninstall_dialog.h" 5 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 } // namespace 72 } // namespace
73 73
74 // static 74 // static
75 extensions::ExtensionUninstallDialog* 75 extensions::ExtensionUninstallDialog*
76 extensions::ExtensionUninstallDialog::Create(Profile* profile, 76 extensions::ExtensionUninstallDialog::Create(Profile* profile,
77 Browser* browser, 77 Browser* browser,
78 Delegate* delegate) { 78 Delegate* delegate) {
79 return new ExtensionUninstallDialogCocoa(profile, browser, delegate); 79 return new ExtensionUninstallDialogCocoa(profile, browser, delegate);
80 } 80 }
81
82 // static
83 extensions::ExtensionUninstallDialog*
84 extensions::ExtensionUninstallDialog::CreateForAppList(Profile* profile,
85 gfx::NativeWindow parent,
86 Delegate* delegate) {
87 // We don't actually need the parent window on Mac - see class description.
88 return new ExtensionUninstallDialogCocoa(profile, NULL, delegate);
89 }
90
91 // static
92 extensions::ExtensionUninstallDialog*
93 extensions::ExtensionUninstallDialog::CreateAsStandaloneDialog(
94 Profile* profile,
95 Delegate* delegate) {
96 return new ExtensionUninstallDialogCocoa(profile, NULL, delegate);
97 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698