Fix crash in -[ProfileMenuController validateMenuItem:].
commit8c1b23970f6d8efe9e68f6dfdadbbf7b0e833417
authoranthonyvd <anthonyvd@chromium.org>
Fri, 24 Apr 2015 18:05:54 +0000 (24 11:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 24 Apr 2015 18:06:49 +0000 (24 18:06 +0000)
treec23cd3f628a5a009af1c3f9ebd7a6345979e91cc
parentf29a78fcc51cde6b9a8bd1a00b2c0c2fa799580c
Fix crash in -[ProfileMenuController validateMenuItem:].

This CL also instruments the function to better understand which edge case
triggers the issue in the first place.

BUG=471586

Review URL: https://codereview.chromium.org/1054113004

Cr-Commit-Position: refs/heads/master@{#326835}
chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
tools/metrics/histograms/histograms.xml