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

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

Issue 660643002: [Refactor] Move creating a browser if necessary to ExtensionInstallDialogView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_install_dialog_controller.mm
diff --git a/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm b/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm
index d3f05ea69643ce1db806d3407722089379000da0..f8e45030fd08ce1b1c64d1a2ef5e9cbfbebea334 100644
--- a/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm
+++ b/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm
@@ -43,9 +43,10 @@ ExtensionInstallDialogController::ExtensionInstallDialogController(
scoped_refptr<ExtensionInstallPrompt::Prompt> prompt)
: delegate_(delegate) {
view_controller_.reset([[ExtensionInstallViewController alloc]
- initWithNavigator:show_params.navigator
- delegate:this
- prompt:prompt]);
+ initWithProfile:show_params.profile
+ navigator:show_params.parent_web_contents
+ delegate:this
+ prompt:prompt]);
base::scoped_nsobject<NSWindow> window([[ConstrainedWindowCustomWindow alloc]
initWithContentRect:[[view_controller_ view] bounds]]);

Powered by Google App Engine
This is Rietveld 408576698