DescriptionFix NSString conversions to treat a null NSString as a string of length 0, instead of crashing. This allows Cocoa to use null objects as empties, as is its wont, and we only run a check when needed.
This CL also removes the now-superfluous checks for null NSStrings from BugReportWindowController. A cursory look through the code shows that there are many places where a check for null precedes a call to an NSString conversion; filed another bug against myself to go through and fix all of these (http://code.google.com/p/chromium/issues/detail?id=27055). Also filed a bug to expand unit tests for NSString conversion methods (http://code.google.com/p/chromium/issues/detail?id=27059).
BUG= none, but see comments in http://codereview.chromium.org/371012/show
TEST= none, but unit tests are included that test changed functionality.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31408
Patch Set 1 : '' #
Total comments: 4
Patch Set 2 : '' #
Total comments: 2
Patch Set 3 : '' #
Total comments: 10
Patch Set 4 : '' #
Messages
Total messages: 12 (0 generated)
|