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

Side by Side Diff: chrome/browser/renderer_host/render_crash_handler_host_linux.cc

Issue 246027: Reverting 27389. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « chrome/browser/printing/printer_query.h ('k') | chrome/browser/visitedlink_master.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/browser/renderer_host/render_crash_handler_host_linux.h" 5 #include "chrome/browser/renderer_host/render_crash_handler_host_linux.h"
6 6
7 #include <dirent.h> 7 #include <dirent.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 #include <sys/socket.h> 10 #include <sys/socket.h>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 closedir(fd); 144 closedir(fd);
145 } 145 }
146 146
147 return already_found; 147 return already_found;
148 } 148 }
149 149
150 // Since RenderCrashHandlerHostLinux is a singleton, it's only destroyed at the 150 // Since RenderCrashHandlerHostLinux is a singleton, it's only destroyed at the
151 // end of the processes lifetime, which is greater in span then the lifetime of 151 // end of the processes lifetime, which is greater in span then the lifetime of
152 // the IO message loop. 152 // the IO message loop.
153 template<> struct RunnableMethodTraits<RenderCrashHandlerHostLinux> { 153 template<> struct RunnableMethodTraits<RenderCrashHandlerHostLinux> {
154 static void RetainCallee(RenderCrashHandlerHostLinux*) { } 154 void RetainCallee(RenderCrashHandlerHostLinux*) { }
155 static void ReleaseCallee(RenderCrashHandlerHostLinux*) { } 155 void ReleaseCallee(RenderCrashHandlerHostLinux*) { }
156 }; 156 };
157 157
158 RenderCrashHandlerHostLinux::RenderCrashHandlerHostLinux() 158 RenderCrashHandlerHostLinux::RenderCrashHandlerHostLinux()
159 : renderer_socket_(-1), 159 : renderer_socket_(-1),
160 browser_socket_(-1) { 160 browser_socket_(-1) {
161 int fds[2]; 161 int fds[2];
162 CHECK(socketpair(AF_UNIX, SOCK_DGRAM, 0, fds) == 0); 162 CHECK(socketpair(AF_UNIX, SOCK_DGRAM, 0, fds) == 0);
163 static const int on = 1; 163 static const int on = 1;
164 164
165 // Enable passcred on the server end of the socket 165 // Enable passcred on the server end of the socket
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 info.guid_length = strlen(guid); 348 info.guid_length = strlen(guid);
349 info.distro = distro; 349 info.distro = distro;
350 info.distro_length = strlen(distro); 350 info.distro_length = strlen(distro);
351 info.upload = upload; 351 info.upload = upload;
352 HandleCrashDump(info); 352 HandleCrashDump(info);
353 } 353 }
354 354
355 void RenderCrashHandlerHostLinux::WillDestroyCurrentMessageLoop() { 355 void RenderCrashHandlerHostLinux::WillDestroyCurrentMessageLoop() {
356 file_descriptor_watcher_.StopWatchingFileDescriptor(); 356 file_descriptor_watcher_.StopWatchingFileDescriptor();
357 } 357 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/printer_query.h ('k') | chrome/browser/visitedlink_master.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698