| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |