From cb000cef90e568bd5192a230e7794113169b70a2 Mon Sep 17 00:00:00 2001 From: "cpu@google.com" Date: Tue, 17 Feb 2009 23:05:41 +0000 Subject: Fix crasher in GetDefaultSearchEngineName() in first run bubble. - It seems that BrowserList::GetLastActive() is returning null, probably it takes longer now for the browser to become active. - But rather than guessing the profile, get it from the guts of the location bar. - crasher is ranked #34 by Laforge BUG=6211 Review URL: http://codereview.chromium.org/20381 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9916 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/first_run_bubble.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome/browser/views/first_run_bubble.h') diff --git a/chrome/browser/views/first_run_bubble.h b/chrome/browser/views/first_run_bubble.h index 90cbf51..6dd1afc 100644 --- a/chrome/browser/views/first_run_bubble.h +++ b/chrome/browser/views/first_run_bubble.h @@ -8,10 +8,12 @@ #include "base/task.h" #include "chrome/browser/views/info_bubble.h" +class Profile; + class FirstRunBubble : public InfoBubble, public InfoBubbleDelegate { public: - static FirstRunBubble* Show(HWND parent_hwnd, + static FirstRunBubble* Show(Profile* profile, HWND parent_hwnd, const gfx::Rect& position_relative_to); FirstRunBubble() -- cgit v1.1