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

Side by Side Diff: client/mac/crash_generation/ConfigFile.mm

Issue 571523004: Mac: Add support for in-process crash reporting (Closed) Base URL: https://chromium.googlesource.com/external/google-breakpad/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « client/mac/Framework/Breakpad.mm ('k') | client/mac/crash_generation/Inspector.h » ('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) 2011, Google Inc. 1 // Copyright (c) 2011, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 // 29 //
30 // Utility class that can persist a SimpleStringDictionary to disk. 30 // Utility class that can persist a SimpleStringDictionary to disk.
31 31
32 #import "client/mac/crash_generation/ConfigFile.h" 32 #import "client/mac/crash_generation/ConfigFile.h"
33 33
34 #import <Foundation/Foundation.h> 34 #import <Foundation/Foundation.h>
35 #include <stdio.h> 35 #include <stdio.h>
36 #include <sys/time.h> 36 #include <sys/time.h>
37 37
38 #import "client/apple/Framework/BreakpadDefines.h" 38 #import "client/apple/Framework/BreakpadDefines.h"
39 #import "GTMDefines.h" 39 #import "common/mac/GTMDefines.h"
40 40
41 41
42 namespace google_breakpad { 42 namespace google_breakpad {
43 43
44 //============================================================================= 44 //=============================================================================
45 BOOL EnsureDirectoryPathExists(NSString *dirPath) { 45 BOOL EnsureDirectoryPathExists(NSString *dirPath) {
46 NSFileManager *mgr = [NSFileManager defaultManager]; 46 NSFileManager *mgr = [NSFileManager defaultManager];
47 47
48 NSDictionary *attrs = 48 NSDictionary *attrs =
49 [NSDictionary dictionaryWithObject:[NSNumber numberWithUnsignedLong:0750] 49 [NSDictionary dictionaryWithObject:[NSNumber numberWithUnsignedLong:0750]
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 break; 158 break;
159 } 159 }
160 AppendCrashTimeParameters( 160 AppendCrashTimeParameters(
161 configurationParameters->GetValueForKey(BREAKPAD_PROCESS_START_TIME)); 161 configurationParameters->GetValueForKey(BREAKPAD_PROCESS_START_TIME));
162 162
163 close(config_file_); 163 close(config_file_);
164 config_file_ = -1; 164 config_file_ = -1;
165 } 165 }
166 166
167 } // namespace google_breakpad 167 } // namespace google_breakpad
OLDNEW
« no previous file with comments | « client/mac/Framework/Breakpad.mm ('k') | client/mac/crash_generation/Inspector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698