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

Side by Side Diff: chrome/browser/views/first_run_bubble.h

Issue 20381: Fix crasher in GetDefaultSearchEngineName() in first run bubble.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/views/first_run_bubble.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__ 5 #ifndef CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__
6 #define CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__ 6 #define CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__
7 7
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "chrome/browser/views/info_bubble.h" 9 #include "chrome/browser/views/info_bubble.h"
10 10
11 class Profile;
12
11 class FirstRunBubble : public InfoBubble, 13 class FirstRunBubble : public InfoBubble,
12 public InfoBubbleDelegate { 14 public InfoBubbleDelegate {
13 public: 15 public:
14 static FirstRunBubble* Show(HWND parent_hwnd, 16 static FirstRunBubble* Show(Profile* profile, HWND parent_hwnd,
15 const gfx::Rect& position_relative_to); 17 const gfx::Rect& position_relative_to);
16 18
17 FirstRunBubble() 19 FirstRunBubble()
18 : enable_window_method_factory_(this), 20 : enable_window_method_factory_(this),
19 has_been_activated_(false) { 21 has_been_activated_(false) {
20 } 22 }
21 23
22 virtual ~FirstRunBubble() { 24 virtual ~FirstRunBubble() {
23 // We should have called RevokeAll on the method factory already. 25 // We should have called RevokeAll on the method factory already.
24 DCHECK(enable_window_method_factory_.empty()); 26 DCHECK(enable_window_method_factory_.empty());
(...skipping 15 matching lines...) Expand all
40 // Whether we have already been activated. 42 // Whether we have already been activated.
41 bool has_been_activated_; 43 bool has_been_activated_;
42 44
43 ScopedRunnableMethodFactory<FirstRunBubble> enable_window_method_factory_; 45 ScopedRunnableMethodFactory<FirstRunBubble> enable_window_method_factory_;
44 46
45 DISALLOW_EVIL_CONSTRUCTORS(FirstRunBubble); 47 DISALLOW_EVIL_CONSTRUCTORS(FirstRunBubble);
46 }; 48 };
47 49
48 #endif // CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__ 50 #endif // CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__
49 51
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/first_run_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698