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

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 159287: Close pop up notification when navigating to other site. (Closed)
Patch Set: Created 11 years, 5 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/tab_contents/tab_contents.cc
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index e91f188cb8c679f04f14b6cd9df20cc349ffced5..e956525b585caf37ab50e1b6cb303359f211e89d 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -1266,6 +1266,12 @@ void TabContents::MaybeCloseChildWindows(const GURL& previous_url,
if (window)
window->CloseConstrainedWindow();
}
+
+ // Close the popup container.
+ if (blocked_popups_) {
+ blocked_popups_->Destroy();
+ blocked_popups_ = NULL;
+ }
}
void TabContents::UpdateStarredStateForCurrentURL() {
« 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