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

Unified Diff: chrome/browser/extensions/extension_install_dialog.cc

Issue 10699057: Move application creation and extension install prompt showing off Browser and onto ExtensionTabHel… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/extension_install_dialog.cc
===================================================================
--- chrome/browser/extensions/extension_install_dialog.cc (revision 145357)
+++ chrome/browser/extensions/extension_install_dialog.cc (working copy)
@@ -59,7 +59,8 @@
} // namespace
-void ShowExtensionInstallDialog(Browser* browser,
+void ShowExtensionInstallDialog(gfx::NativeWindow parent,
+ content::PageNavigator* navigator,
ExtensionInstallPrompt::Delegate* delegate,
const ExtensionInstallPrompt::Prompt& prompt) {
AutoConfirmForTest auto_confirm = CheckAutoConfirmCommandLineSwitch();
@@ -67,5 +68,9 @@
DoAutoConfirm(auto_confirm, delegate);
return;
}
- ShowExtensionInstallDialogImpl(browser, delegate, prompt);
+ if (!parent) {
+ delegate->InstallUIAbort(false);
+ return;
+ }
+ ShowExtensionInstallDialogImpl(parent, navigator, delegate, prompt);
}
« no previous file with comments | « chrome/browser/extensions/extension_install_dialog.h ('k') | chrome/browser/extensions/extension_install_prompt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698