| Index: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
|
| diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
|
| index 438c02159ea10aeb831ee54b3e54deffdcf85c59..e59968db2518dfa1e0ad7f773a3dd27f105761e7 100644
|
| --- a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
|
| +++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
|
| @@ -22,6 +22,7 @@
|
| #include "chrome/browser/google/google_util.h"
|
| #include "chrome/browser/history/history_tab_helper.h"
|
| #include "chrome/browser/intents/register_intent_handler_infobar_delegate.h"
|
| +#include "chrome/browser/intents/web_intent_data.h"
|
| #include "chrome/browser/omnibox_search_hint.h"
|
| #include "chrome/browser/password_manager/password_manager.h"
|
| #include "chrome/browser/password_manager_delegate_impl.h"
|
| @@ -597,7 +598,11 @@ void TabContentsWrapper::OnRegisterIntentHandler(const string16& action,
|
| if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableWebIntents))
|
| return;
|
|
|
| - AddInfoBar(new RegisterIntentHandlerInfoBarDelegate(tab_contents()));
|
| + WebIntentData intent;
|
| + intent.service_url = GURL(href);
|
| + intent.action = action;
|
| + intent.type = type;
|
| + AddInfoBar(new RegisterIntentHandlerInfoBarDelegate(tab_contents(), intent));
|
| }
|
|
|
| void TabContentsWrapper::OnSnapshot(const SkBitmap& bitmap) {
|
|
|