From 250c2074c440088f044fe392178b245c41f8b71e Mon Sep 17 00:00:00 2001 From: "ctguil@chromium.org" Date: Tue, 10 Aug 2010 19:41:32 +0000 Subject: Initialize most_recent_profile_ in constructor. BUG=51631 TEST=Ensure chrome --first-run don't crash when opening the wrench menu. Review URL: http://codereview.chromium.org/3139002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55606 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/accessibility_event_router_views.cc | 3 ++- views/controls/menu/submenu_view.cc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/browser/views/accessibility_event_router_views.cc b/chrome/browser/views/accessibility_event_router_views.cc index 670e2f0..4f2d7ff 100644 --- a/chrome/browser/views/accessibility_event_router_views.cc +++ b/chrome/browser/views/accessibility_event_router_views.cc @@ -23,7 +23,8 @@ using views::FocusManager; using views::View; AccessibilityEventRouterViews::AccessibilityEventRouterViews() - : ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) { + : most_recent_profile_(NULL), + ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) { } AccessibilityEventRouterViews::~AccessibilityEventRouterViews() { diff --git a/views/controls/menu/submenu_view.cc b/views/controls/menu/submenu_view.cc index 2cfd8b8..ba40933 100644 --- a/views/controls/menu/submenu_view.cc +++ b/views/controls/menu/submenu_view.cc @@ -241,7 +241,7 @@ void SubmenuView::ShowAt(gfx::NativeWindow parent, host_->Init(parent, bounds, scroll_view_container_, do_capture); GetScrollViewContainer()->NotifyAccessibilityEvent( - AccessibilityTypes::EVENT_MENUPOPUPSTART); + AccessibilityTypes::EVENT_MENUPOPUPSTART); } void SubmenuView::Reposition(const gfx::Rect& bounds) { -- cgit v1.1