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

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc

Issue 138803012: Fix use-after-free in WebstoreInstaller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/extensions/bundle_installer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
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 95dfcd6c769b49ec1541dc3c8a5bcb12402a7e33..652cd80c947e7bf46279e84158f614580bf31595 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
@@ -240,7 +240,7 @@ bool WebstorePrivateInstallBundleFunction::
void WebstorePrivateInstallBundleFunction::OnBundleInstallApproved() {
bundle_->CompleteInstall(
- &(dispatcher()->delegate()->GetAssociatedWebContents()->GetController()),
+ dispatcher()->delegate()->GetAssociatedWebContents(),
this);
}
@@ -570,7 +570,7 @@ bool WebstorePrivateCompleteInstallFunction::RunImpl() {
scoped_refptr<WebstoreInstaller> installer = new WebstoreInstaller(
GetProfile(),
this,
- &(dispatcher()->delegate()->GetAssociatedWebContents()->GetController()),
+ dispatcher()->delegate()->GetAssociatedWebContents(),
params->expected_id,
approval_.Pass(),
WebstoreInstaller::INSTALL_SOURCE_OTHER);
« no previous file with comments | « no previous file | chrome/browser/extensions/bundle_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698