| 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..9bf2b17cf47aed3299006a015cb6325f15916f96 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,10 @@ content::WebContents* WebIntentInlineDispositionDelegate::OpenURLFromTab(
|
|
|
| return source;
|
| }
|
| +
|
| +void WebIntentInlineDispositionDelegate::LoadingStateChanged(
|
| + content::WebContents* source) {
|
| + if (!source->IsLoading())
|
| + picker_->OnInlineDispositionWebContentsLoaded(source);
|
| +}
|
| +
|
|
|