Sender tweaks; strip whitespace from server-returned ID, and change the title of the dialog a bit.

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@326 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
stuart.morgan 2009-04-07 16:31:27 +00:00
parent 9290b7062f
commit 841f5f7390
3 changed files with 8 additions and 6 deletions

View file

@ -111,8 +111,8 @@ typedef bool (*BreakpadFilterCallback)(int exception_type,
// as metadata for crash report // as metadata for crash report
// REQUIRED // REQUIRED
// //
// BREAKPAD_VENDOR Vendor named, used in UI (e.g. the Xxxx // BREAKPAD_VENDOR Vendor name, used in UI (e.g. "A report has
// foo bar company product widget has crashed) // been created that you can send to <vendor>")
// //
// BREAKPAD_URL URL destination for reporting // BREAKPAD_URL URL destination for reporting
// REQUIRED // REQUIRED

View file

@ -354,7 +354,7 @@ const int kMinidumpFileLengthLimit = 800000;
[self setHeaderMessage:[NSString stringWithFormat: [self setHeaderMessage:[NSString stringWithFormat:
NSLocalizedStringFromTableInBundle(@"headerFmt", nil, NSLocalizedStringFromTableInBundle(@"headerFmt", nil,
bundle, bundle,
@""), vendor, display]]; @""), display]];
NSString *defaultButtonTitle = nil; NSString *defaultButtonTitle = nil;
NSString *otherButtonTitle = nil; NSString *otherButtonTitle = nil;
NSTimeInterval timeout = 60.0; // timeout value for the user notification NSTimeInterval timeout = 60.0; // timeout value for the user notification
@ -636,11 +636,13 @@ const int kMinidumpFileLengthLimit = 800000;
encoding:NSUTF8StringEncoding]; encoding:NSUTF8StringEncoding];
const char *reportID = "ERR"; const char *reportID = "ERR";
if (error) if (error) {
fprintf(stderr, "Breakpad Reporter: Send Error: %s\n", fprintf(stderr, "Breakpad Reporter: Send Error: %s\n",
[[error description] UTF8String]); [[error description] UTF8String]);
else } else {
reportID = [result UTF8String]; NSCharacterSet *trimSet = [NSCharacterSet whitespaceAndNewlineCharacterSet];
reportID = [[result stringByTrimmingCharactersInSet:trimSet] UTF8String];
}
// rename the minidump file according to the id returned from the server // rename the minidump file according to the id returned from the server
NSString *minidumpDir = [parameters_ objectForKey:@kReporterMinidumpDirectoryKey]; NSString *minidumpDir = [parameters_ objectForKey:@kReporterMinidumpDirectoryKey];