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

Unified Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc

Issue 662073002: Fix crash when user closes window prior to the "Confirm Install" prompt showing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/install_prompt_navigator
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/views/extensions/extension_install_dialog_view_browsertest.cc
diff --git a/chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc b/chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc
index cecada130e307bf506651105d1124619a6704c3b..aeeb9b13f041cb4423584c6413e195ed59a7c9c2 100644
--- a/chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc
+++ b/chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc
@@ -161,16 +161,16 @@ ScrollbarTest::ScrollbarTest()
}
bool ScrollbarTest::IsScrollbarVisible() {
- ExtensionInstallPrompt::ShowParams show_params(web_contents());
ExtensionInstallDialogView* dialog = new ExtensionInstallDialogView(
- show_params.profile,
- show_params.parent_web_contents,
+ profile(),
+ web_contents(),
delegate(),
prompt());
// Create the modal view around the install dialog view.
views::Widget* modal =
- CreateBrowserModalDialogViews(dialog, show_params.parent_window);
+ CreateBrowserModalDialogViews(dialog,
+ web_contents()->GetTopLevelNativeWindow());
modal->Show();
content::RunAllBlockingPoolTasksUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698