Index: chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc |
diff --git a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc |
index 177c6c97b8b77287a92f93aabd195659f52bf0be..eb2fcaead9f18fbc04ca960b34b1117e6f1e3cf3 100644 |
--- a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc |
+++ b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc |
@@ -5,10 +5,13 @@ |
#include "chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h" |
#include "base/logging.h" |
+#include "chrome/browser/ui/intents/web_intent_picker.h" |
#include "content/public/browser/navigation_controller.h" |
#include "content/public/browser/web_contents.h" |
-WebIntentInlineDispositionDelegate::WebIntentInlineDispositionDelegate() { |
+WebIntentInlineDispositionDelegate::WebIntentInlineDispositionDelegate( |
+ WebIntentPicker* picker) |
+ : picker_(picker) { |
} |
WebIntentInlineDispositionDelegate::~WebIntentInlineDispositionDelegate() { |
@@ -38,3 +41,11 @@ content::WebContents* WebIntentInlineDispositionDelegate::OpenURLFromTab( |
return source; |
} |
+ |
+void WebIntentInlineDispositionDelegate::LoadingStateChanged( |
+ content::WebContents* source) { |
+ if (!source->IsLoading()) { |
James Hawkins
2012/04/11 18:05:46
Optional nit: Save a line by removing braces.
binji
2012/04/12 17:48:49
Done.
|
+ picker_->OnInlineDispositionWebContentsLoaded(source); |
+ } |
+} |
+ |