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

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

Issue 10218009: Allow severing connection between dispatcher and injector (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix compile issue for browser_tests 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/internal_web_intents_dispatcher.cc
diff --git a/content/browser/intents/internal_web_intents_dispatcher.cc b/content/browser/intents/internal_web_intents_dispatcher.cc
index a34ddfddfe3184b2aa25f1ce087c7fae060512da..dc731ace763b31577e478eb8de5d355b6b1c1f5e 100644
--- a/content/browser/intents/internal_web_intents_dispatcher.cc
+++ b/content/browser/intents/internal_web_intents_dispatcher.cc
@@ -36,6 +36,13 @@ void InternalWebIntentsDispatcher::DispatchIntent(
intent_injector_->SetIntent(this, intent_);
}
+void InternalWebIntentsDispatcher::ResetDispatch() {
+ if (intent_injector_) {
+ intent_injector_->Abandon();
+ intent_injector_ = NULL;
+ }
+}
+
void InternalWebIntentsDispatcher::SendReplyMessage(
webkit_glue::WebIntentReplyType reply_type,
const string16& data) {

Powered by Google App Engine
This is Rietveld 408576698