diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-17 23:05:41 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-17 23:05:41 +0000 |
commit | cb000cef90e568bd5192a230e7794113169b70a2 (patch) | |
tree | 28b5c0874e65368f501eae684ecab19d8752e6b8 /chrome/browser/views/first_run_bubble.h | |
parent | 43f2be0f6498026903681a3bdf27e90282b5cc52 (diff) | |
download | chromium_src-cb000cef90e568bd5192a230e7794113169b70a2.zip chromium_src-cb000cef90e568bd5192a230e7794113169b70a2.tar.gz chromium_src-cb000cef90e568bd5192a230e7794113169b70a2.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/views/first_run_bubble.h')
-rw-r--r-- | chrome/browser/views/first_run_bubble.h | 4 |
1 files changed, 3 insertions, 1 deletions
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() |