Index: chrome/browser/ui/intents/web_intent_picker_controller.cc |
diff --git a/chrome/browser/ui/intents/web_intent_picker_controller.cc b/chrome/browser/ui/intents/web_intent_picker_controller.cc |
index f45a7e32ac27534c9ff8f034c82d35f7bfac074f..b0d3e04c75246d51c95b660919ecc6175e8660ea 100644 |
--- a/chrome/browser/ui/intents/web_intent_picker_controller.cc |
+++ b/chrome/browser/ui/intents/web_intent_picker_controller.cc |
@@ -276,12 +276,12 @@ void WebIntentPickerController::OnInlineDispositionWebContentsCreated( |
void WebIntentPickerController::OnExtensionInstallRequested( |
const std::string& id) { |
- webstore_installer_ = new WebstoreInstaller( |
+ scoped_refptr<WebstoreInstaller> installer = new WebstoreInstaller( |
wrapper_->profile(), this, &wrapper_->web_contents()->GetController(), id, |
WebstoreInstaller::FLAG_INLINE_INSTALL); |
pending_async_count_++; |
- webstore_installer_->Start(); |
+ installer->Start(); |
} |
void WebIntentPickerController::OnCancelled() { |