summaryrefslogtreecommitdiffstats
path: root/chrome/browser/shell_dialogs.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 19:11:55 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 19:11:55 +0000
commit946a8dc4000d6e444f487b4e83c5f6daa52b4566 (patch)
tree02ee24bca8a6b94bcf6c5cc79980c929fd9e0f3f /chrome/browser/shell_dialogs.h
parente6e1854df4ad729852b11c1eaeb5dddb5467257d (diff)
downloadchromium_src-946a8dc4000d6e444f487b4e83c5f6daa52b4566.zip
chromium_src-946a8dc4000d6e444f487b4e83c5f6daa52b4566.tar.gz
chromium_src-946a8dc4000d6e444f487b4e83c5f6daa52b4566.tar.bz2
Fix crash by using correct type in class decl.
Patch by Std.Denis. http://crbug.com/27291 TEST=Open fonts and languages dialog box and click OK. Should not crash. Review URL: http://codereview.chromium.org/384123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31924 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_dialogs.h')
-rw-r--r--chrome/browser/shell_dialogs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/shell_dialogs.h b/chrome/browser/shell_dialogs.h
index 46218b9..3765864 100644
--- a/chrome/browser/shell_dialogs.h
+++ b/chrome/browser/shell_dialogs.h
@@ -124,7 +124,7 @@ class SelectFileDialog
// Shows a dialog box for selecting a font.
class SelectFontDialog
- : public base::RefCountedThreadSafe<SelectFileDialog>,
+ : public base::RefCountedThreadSafe<SelectFontDialog>,
public BaseShellDialog {
public:
@@ -135,12 +135,12 @@ class SelectFontDialog
public:
// Notifies the Listener that a font selection has been made. The font
// details are supplied in |font|. |params| is contextual passed to
- // SelectFile.
+ // SelectFont.
virtual void FontSelected(const gfx::Font& font, void* params) = 0;
// Notifies the Listener that the font selection was aborted (via the user
// canceling or closing the selection dialog box, for example). |params| is
- // contextual passed to SelectFile.
+ // contextual passed to SelectFont.
virtual void FontSelectionCanceled(void* params) {};
};
@@ -171,7 +171,7 @@ class SelectFontDialog
int font_size) = 0;
protected:
- friend class base::RefCountedThreadSafe<SelectFileDialog>;
+ friend class base::RefCountedThreadSafe<SelectFontDialog>;
virtual ~SelectFontDialog() {}
};