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

Unified Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc

Issue 7601013: Web Intents: Hook up the register intent InfoBar with the WebIntentsRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanups and fixes. Created 9 years, 4 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/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) {

Powered by Google App Engine
This is Rietveld 408576698