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

Unified Diff: chrome/browser/crash_handler_host_linux_stub.cc

Issue 5519016: Add a new GetInstance() method for singleton classes used in chrome/browser files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/crash_handler_host_linux.cc ('k') | chrome/browser/cross_site_request_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/crash_handler_host_linux_stub.cc
diff --git a/chrome/browser/crash_handler_host_linux_stub.cc b/chrome/browser/crash_handler_host_linux_stub.cc
index 6835bc27ca3302815c98e8edcaac974abb30a741..157d7725d263a0e544563afedb4e1f731c475d9e 100644
--- a/chrome/browser/crash_handler_host_linux_stub.cc
+++ b/chrome/browser/crash_handler_host_linux_stub.cc
@@ -7,6 +7,8 @@
#include "chrome/browser/crash_handler_host_linux.h"
+#include "base/singleton.h"
+
CrashHandlerHostLinux::CrashHandlerHostLinux()
: process_socket_(-1),
browser_socket_(-1) {
@@ -30,8 +32,18 @@ PluginCrashHandlerHostLinux::PluginCrashHandlerHostLinux() {
PluginCrashHandlerHostLinux::~PluginCrashHandlerHostLinux() {
}
+// static
+PluginCrashHandlerHostLinux* PluginCrashHandlerHostLinux::GetInstance() {
+ return Singleton<PluginCrashHandlerHostLinux>::get();
+}
+
RendererCrashHandlerHostLinux::RendererCrashHandlerHostLinux() {
}
RendererCrashHandlerHostLinux::~RendererCrashHandlerHostLinux() {
}
+
+// static
+RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() {
+ return Singleton<RendererCrashHandlerHostLinux>::get();
+}
« no previous file with comments | « chrome/browser/crash_handler_host_linux.cc ('k') | chrome/browser/cross_site_request_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698