Chromium Code Reviews| Index: chrome/browser/external_tab_container_win.cc |
| =================================================================== |
| --- chrome/browser/external_tab_container_win.cc (revision 107404) |
| +++ chrome/browser/external_tab_container_win.cc (working copy) |
| @@ -219,6 +219,8 @@ |
| content::Source<TabContents>(tab_contents_->tab_contents())); |
| registrar_.Add(this, content::NOTIFICATION_RENDER_VIEW_HOST_DELETED, |
| content::NotificationService::AllSources()); |
| + registrar_.Add(this, content::NOTIFICATION_RENDER_VIEW_HOST_CREATED, |
| + content::NotificationService::AllSources()); |
| TabContentsObserver::Observe(tab_contents_->tab_contents()); |
| @@ -881,6 +883,7 @@ |
| } |
| break; |
| } |
| + |
|
robertshield
2011/10/28 00:59:39
nit: remove blank here and the blank line above a
|
| case content::NOTIFICATION_RENDER_VIEW_HOST_DELETED: { |
| if (load_requests_via_automation_) { |
| RenderViewHost* rvh = content::Source<RenderViewHost>(source).ptr(); |
| @@ -888,6 +891,15 @@ |
| } |
| break; |
| } |
| + |
| + case content::NOTIFICATION_RENDER_VIEW_HOST_CREATED: { |
| + if (load_requests_via_automation_) { |
| + RenderViewHost* rvh = content::Source<RenderViewHost>(source).ptr(); |
| + RegisterRenderViewHostForAutomation(rvh, false); |
| + } |
| + break; |
| + } |
| + |
| default: |
| NOTREACHED(); |
| } |