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

Unified Diff: content/browser/intents/web_intents_dispatcher_impl.cc

Issue 10218009: Allow severing connection between dispatcher and injector (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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: content/browser/intents/web_intents_dispatcher_impl.cc
diff --git a/content/browser/intents/web_intents_dispatcher_impl.cc b/content/browser/intents/web_intents_dispatcher_impl.cc
index f58323ef0b4d1d9990fa0e1df32fae9509ef515b..65763893acda4b304df4741310d4a9da89ffb8f6 100644
--- a/content/browser/intents/web_intents_dispatcher_impl.cc
+++ b/content/browser/intents/web_intents_dispatcher_impl.cc
@@ -45,6 +45,13 @@ void WebIntentsDispatcherImpl::DispatchIntent(
intent_injector_->SetIntent(this, intent_);
}
+void WebIntentsDispatcherImpl::CancelDispatch() {
+ if (intent_injector_) {
+ intent_injector_->Abandon();
Greg Billock 2012/04/25 14:26:52 An alternate way to do this is to clear reply_noti
groby-ooo-7-16 2012/04/25 16:40:10 The re-registering would happen in all sorts of di
+ intent_injector_ = NULL;
+ }
+}
+
void WebIntentsDispatcherImpl::SendReplyMessage(
webkit_glue::WebIntentReplyType reply_type,
const string16& data) {

Powered by Google App Engine
This is Rietveld 408576698