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

Unified Diff: chrome/browser/extensions/bundle_installer.cc

Issue 16295003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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/extensions/bundle_installer.cc
diff --git a/chrome/browser/extensions/bundle_installer.cc b/chrome/browser/extensions/bundle_installer.cc
index c5db01029f419eca56b4c4174a4a194918b0b1ab..db7057ae6e7cb1aff597c48409e7699a7ada903d 100644
--- a/chrome/browser/extensions/bundle_installer.cc
+++ b/chrome/browser/extensions/bundle_installer.cc
@@ -261,8 +261,8 @@ void BundleInstaller::ShowPrompt() {
scoped_refptr<PermissionSet> permissions;
for (size_t i = 0; i < dummy_extensions_.size(); ++i) {
permissions = PermissionSet::CreateUnion(
- permissions,
- PermissionsData::GetRequiredPermissions(dummy_extensions_[i]));
+ permissions.get(),
+ PermissionsData::GetRequiredPermissions(dummy_extensions_[i].get()));
}
if (g_auto_approve_for_test == PROCEED) {
@@ -280,7 +280,7 @@ void BundleInstaller::ShowPrompt() {
if (browser)
web_contents = browser->tab_strip_model()->GetActiveWebContents();
install_ui_.reset(new ExtensionInstallPrompt(web_contents));
- install_ui_->ConfirmBundleInstall(this, permissions);
+ install_ui_->ConfirmBundleInstall(this, permissions.get());
}
}

Powered by Google App Engine
This is Rietveld 408576698