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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 5111002: Fixes bug where instant dim was not removed correctly if you pressed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Created 10 years, 1 month 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/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 3e2dbf82129b781b4ded8b96641835b27d602928..2bf7e78dfdaa7124c319beffec1f39b85f4ef5fe 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1365,8 +1365,10 @@ void BrowserView::ShowInstant(TabContents* preview_contents) {
}
void BrowserView::HideInstant() {
- if (!preview_container_)
+ if (!preview_container_) {
+ contents_->RemoveFade();
return;
+ }
// The contents must be changed before SetPreview is invoked.
preview_container_->ChangeTabContents(NULL);
« 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