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

Unified Diff: chrome/browser/ui/views/bubble/bubble.cc

Issue 7010010: Fix crash when installing extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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/ui/views/bubble/bubble.cc
===================================================================
--- chrome/browser/ui/views/bubble/bubble.cc (revision 85510)
+++ chrome/browser/ui/views/bubble/bubble.cc (working copy)
@@ -189,11 +189,6 @@
DCHECK(!border_);
border_ = new BorderWidgetWin();
- if (fade_in) {
- border_->SetOpacity(0);
- GetWidget()->SetOpacity(0);
- }
-
border_->InitBorderWidgetWin(CreateBorderContents(), parent->GetNativeView());
border_->border_contents()->SetBackgroundColor(kBackgroundColor);
@@ -204,6 +199,10 @@
params.native_widget = this;
GetWidget()->Init(params);
+ if (fade_in) {
+ border_->SetOpacity(0);
+ GetWidget()->SetOpacity(0);
+ }
SetWindowText(GetNativeView(), delegate_->accessible_name().c_str());
#elif defined(TOOLKIT_USES_GTK)
views::Widget::InitParams params(type_);
« 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