summaryrefslogtreecommitdiffstats
path: root/chrome/browser/crash_handler_host_linux.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 19:44:09 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 19:44:09 +0000
commit19eef069c3a53544627254e54f88ae8bbc8c40a7 (patch)
tree159ae40d233afad309702dfb7e0f1272617bf5d4 /chrome/browser/crash_handler_host_linux.h
parent90db7d15b2e3b9be1e9d4131b32bf5616cf11d0f (diff)
downloadchromium_src-19eef069c3a53544627254e54f88ae8bbc8c40a7.zip
chromium_src-19eef069c3a53544627254e54f88ae8bbc8c40a7.tar.gz
chromium_src-19eef069c3a53544627254e54f88ae8bbc8c40a7.tar.bz2
Linux: Fix pure call in CrashHandlerHostLinux::Init().
BUG=55780 TEST=no more random crashes on startup. Review URL: http://codereview.chromium.org/3417005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/crash_handler_host_linux.h')
-rw-r--r--chrome/browser/crash_handler_host_linux.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/crash_handler_host_linux.h b/chrome/browser/crash_handler_host_linux.h
index a31300c..0e7bf6e 100644
--- a/chrome/browser/crash_handler_host_linux.h
+++ b/chrome/browser/crash_handler_host_linux.h
@@ -45,9 +45,10 @@ class CrashHandlerHostLinux : public MessageLoopForIO::Watcher,
protected:
CrashHandlerHostLinux();
virtual ~CrashHandlerHostLinux();
+
#if defined(USE_LINUX_BREAKPAD)
- // This is here on purpose to make CrashHandlerHostLinux abstract.
- virtual void SetProcessType() = 0;
+ // Only called in concrete subclasses.
+ void InitCrashUploaderThread();
std::string process_type_;
#endif
@@ -55,8 +56,14 @@ class CrashHandlerHostLinux : public MessageLoopForIO::Watcher,
private:
void Init();
+#if defined(USE_LINUX_BREAKPAD)
+ // This is here on purpose to make CrashHandlerHostLinux abstract.
+ virtual void SetProcessType() = 0;
+#endif
+
int process_socket_;
int browser_socket_;
+
#if defined(USE_LINUX_BREAKPAD)
MessageLoopForIO::FileDescriptorWatcher file_descriptor_watcher_;
scoped_ptr<base::Thread> uploader_thread_;