diff options
Diffstat (limited to 'chrome/browser/extensions/api')
| -rw-r--r-- | chrome/browser/extensions/api/permissions/permissions_api.cc | 2 | ||||
| -rw-r--r-- | chrome/browser/extensions/api/webstore_private/webstore_private_api.cc | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/extensions/api/permissions/permissions_api.cc b/chrome/browser/extensions/api/permissions/permissions_api.cc index 0af5db5..747a74e 100644 --- a/chrome/browser/extensions/api/permissions/permissions_api.cc +++ b/chrome/browser/extensions/api/permissions/permissions_api.cc @@ -203,7 +203,7 @@ bool RequestPermissionsFunction::RunImpl() { InstallUIAbort(true); } else { CHECK_EQ(DO_NOT_SKIP, auto_confirm_for_tests); - install_ui_.reset(new ExtensionInstallPrompt(profile())); + install_ui_.reset(new ExtensionInstallPrompt(GetCurrentBrowser())); install_ui_->ConfirmPermissions( this, GetExtension(), requested_permissions_.get()); } diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc index 00f7e85..b6d32f2 100644 --- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc +++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc @@ -197,7 +197,7 @@ bool InstallBundleFunction::RunImpl() { if (!ReadBundleInfo(extensions, &items)) return false; - bundle_ = new BundleInstaller(profile(), items); + bundle_ = new BundleInstaller(GetCurrentBrowser(), items); AddRef(); // Balanced in OnBundleInstallCompleted / OnBundleInstallCanceled. @@ -228,7 +228,6 @@ bool InstallBundleFunction::ReadBundleInfo(ListValue* extensions, void InstallBundleFunction::OnBundleInstallApproved() { bundle_->CompleteInstall( &(dispatcher()->delegate()->GetAssociatedWebContents()->GetController()), - GetCurrentBrowser(), this); } @@ -367,7 +366,7 @@ void BeginInstallWithManifestFunction::OnWebstoreParseSuccess( return; } - install_prompt_.reset(new ExtensionInstallPrompt(profile())); + install_prompt_.reset(new ExtensionInstallPrompt(GetCurrentBrowser())); install_prompt_->ConfirmWebstoreInstall(this, dummy_extension_, &icon_); // Control flow finishes up in InstallUIProceed or InstallUIAbort. } |
