summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/extensions/webstore_standalone_installer.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/extensions/webstore_standalone_installer.cc b/chrome/browser/extensions/webstore_standalone_installer.cc
index 84ce98c..e101a72 100644
--- a/chrome/browser/extensions/webstore_standalone_installer.cc
+++ b/chrome/browser/extensions/webstore_standalone_installer.cc
@@ -22,6 +22,7 @@
#include "content/public/browser/utility_process_host.h"
#include "content/public/browser/utility_process_host_client.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_view.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/url_request/url_fetcher.h"
@@ -370,7 +371,10 @@ void WebstoreStandaloneInstaller::OnWebstoreParseSuccess(
return;
}
- install_ui_.reset(new ExtensionInstallPrompt(NULL, web_contents(), profile));
+ install_ui_.reset(new ExtensionInstallPrompt(
+ web_contents()->GetView()->GetTopLevelNativeWindow(),
+ web_contents(),
+ profile));
install_ui_->ConfirmStandaloneInstall(this, dummy_extension_, &icon_, prompt);
// Control flow finishes up in InstallUIProceed or InstallUIAbort.
}