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

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: 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/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..df5ec9953a378a328783b6c663dea233903a57fc 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::ResetDispatch() {
+ if (intent_injector_) {
+ intent_injector_->Abandon();
+ intent_injector_ = NULL;
+ }
+}
+
void WebIntentsDispatcherImpl::SendReplyMessage(
webkit_glue::WebIntentReplyType reply_type,
const string16& data) {
« no previous file with comments | « content/browser/intents/web_intents_dispatcher_impl.h ('k') | content/public/browser/web_intents_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698