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

Unified Diff: chrome/browser/external_tab_container_win.cc

Issue 8414005: Register the RenderViewHost instance created when a desktop notification bubble is displayed in CF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698