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

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

Issue 11360144: Converts some of the omnibox related classes to support multiple (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_initialized Created 8 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 | chrome/browser/ui/views/location_bar/keyword_hint_view.h » ('j') | 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 b6fd5db2e9f977e10831c2dea76f85ab02a5d2b3..f251aa31f2930a7d2cd3ab0df3a23aded39f87d4 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1873,7 +1873,7 @@ void BrowserView::PaintChildren(gfx::Canvas* canvas) {
void BrowserView::ViewHierarchyChanged(bool is_add,
views::View* parent,
views::View* child) {
- if (is_add && child == this && GetWidget() && !initialized_) {
+ if (!initialized_ && is_add && child == this && GetWidget()) {
Init();
initialized_ = true;
}
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/keyword_hint_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698