diff options
Diffstat (limited to 'chrome/browser/extensions/unpacked_installer.cc')
| -rw-r--r-- | chrome/browser/extensions/unpacked_installer.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/extensions/unpacked_installer.cc b/chrome/browser/extensions/unpacked_installer.cc index b73d7bc..e9c04b7 100644 --- a/chrome/browser/extensions/unpacked_installer.cc +++ b/chrome/browser/extensions/unpacked_installer.cc @@ -11,6 +11,7 @@ #include "chrome/browser/extensions/extension_prefs.h" #include "chrome/browser/extensions/extension_service.h" #include "chrome/browser/extensions/permissions_updater.h" +#include "chrome/browser/ui/browser_finder.h" #include "chrome/common/extensions/extension.h" #include "chrome/common/extensions/extension_file_util.h" #include "chrome/common/string_ordinal.h" @@ -48,8 +49,9 @@ SimpleExtensionLoadPrompt::SimpleExtensionLoadPrompt( base::WeakPtr<ExtensionService> extension_service, const Extension* extension) : service_weak_(extension_service), - install_ui_(new ExtensionInstallPrompt(profile)), extension_(extension) { + Browser* browser = browser::FindLastActiveWithProfile(profile); + install_ui_.reset(new ExtensionInstallPrompt(browser)); } SimpleExtensionLoadPrompt::~SimpleExtensionLoadPrompt() { |
