diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-01 23:18:33 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-01 23:18:33 +0000 |
commit | 2eaf9dd9583136aea0dbb133f632226d8771e02c (patch) | |
tree | 7fb4f12c3ea130e91acd5a603b1b241e2b2209af /content | |
parent | f6dba747f2ab7dd162a7c2d10d69a172bebfd84d (diff) | |
download | chromium_src-2eaf9dd9583136aea0dbb133f632226d8771e02c.zip chromium_src-2eaf9dd9583136aea0dbb133f632226d8771e02c.tar.gz chromium_src-2eaf9dd9583136aea0dbb133f632226d8771e02c.tar.bz2 |
Makes instant show SSL error page. Because these end up with a
different RenderViewHost I wasn't seeing the paint, and wasn't
showing the preview. I've plumbed through notification so that I can
detect this case.
I'm writing the test for this separately.
BUG=74085
TEST=see bug
Review URL: http://codereview.chromium.org/6597056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76458 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/browser/tab_contents/interstitial_page.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/browser/tab_contents/interstitial_page.cc b/content/browser/tab_contents/interstitial_page.cc index c97d946..0dd06ea 100644 --- a/content/browser/tab_contents/interstitial_page.cc +++ b/content/browser/tab_contents/interstitial_page.cc @@ -19,6 +19,7 @@ #include "chrome/common/bindings_policy.h" #include "chrome/common/dom_storage_common.h" #include "chrome/common/net/url_request_context_getter.h" +#include "chrome/common/notification_service.h" #include "chrome/common/notification_source.h" #include "content/browser/browser_thread.h" #include "content/browser/renderer_host/render_process_host.h" @@ -355,6 +356,11 @@ void InterstitialPage::DidNavigate( render_view_host_->view()->Show(); tab_->set_interstitial_page(this); + NotificationService::current()->Notify( + NotificationType::INTERSTITIAL_ATTACHED, + Source<TabContents>(tab_), + NotificationService::NoDetails()); + RenderWidgetHostView* rwh_view = tab_->render_view_host()->view(); // The RenderViewHost may already have crashed before we even get here. |