Add a public content/ interface for intents. Use it.
[email protected]
BUG=104980
TEST=None.
Review URL: http://codereview.chromium.org/8666013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112545 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index f3359a9..b9fba70 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -20,6 +20,7 @@
#include "content/browser/download/download_stats.h"
#include "content/browser/host_zoom_map.h"
#include "content/browser/in_process_webkit/session_storage_namespace.h"
+#include "content/browser/intents/intents_host_impl.h"
#include "content/browser/load_from_memory_cache_details.h"
#include "content/browser/load_notification_details.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
@@ -915,7 +916,8 @@
void TabContents::OnWebIntentDispatch(const IPC::Message& message,
const webkit_glue::WebIntentData& intent,
int intent_id) {
- delegate()->WebIntentDispatch(this, message.routing_id(), intent, intent_id);
+ IntentsHostImpl* intents_host = new IntentsHostImpl(this, intent, intent_id);
+ delegate()->WebIntentDispatch(this, intents_host);
}
void TabContents::OnDidStartProvisionalLoadForFrame(int64 frame_id,