| 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 1802c564946cb74f3c16c30696e5e0588250e0ff..4915d57898960bcfd669dab117ac760982a09e7c 100644
|
| --- a/chrome/browser/ui/intents/web_intent_picker_controller.cc
|
| +++ b/chrome/browser/ui/intents/web_intent_picker_controller.cc
|
| @@ -307,10 +307,13 @@ void WebIntentPickerController::OnInlineDispositionWebContentsCreated(
|
|
|
| void WebIntentPickerController::OnExtensionInstallRequested(
|
| const std::string& id) {
|
| + scoped_ptr<WebstoreInstaller::Approval> approval(
|
| + WebstoreInstaller::Approval::CreateWithInstallPrompt(
|
| + wrapper_->profile()));
|
| +
|
| scoped_refptr<WebstoreInstaller> installer = new WebstoreInstaller(
|
| wrapper_->profile(), this, &wrapper_->web_contents()->GetController(), id,
|
| - scoped_ptr<WebstoreInstaller::Approval>(NULL),
|
| - WebstoreInstaller::FLAG_INLINE_INSTALL);
|
| + approval.Pass(), WebstoreInstaller::FLAG_INLINE_INSTALL);
|
|
|
| pending_async_count_++;
|
| installer->Start();
|
|
|