mac: Suppress a clang warning in CustomFrameView.
commit8f7b9f93a037437f09cc3d95aa73a6a8346df0af
authorerikchen <erikchen@chromium.org>
Thu, 14 May 2015 23:21:03 +0000 (14 16:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 14 May 2015 23:21:10 +0000 (14 23:21 +0000)
tree71f6df11acd6d3b1dcdd4ef552b70fc9954f4254
parent1a4bbd1c973adbeeb9c9b4db061186a89fabbf0d
mac: Suppress a clang warning in CustomFrameView.

Clang's static analyzer emits the warning "-Wobjc-designated-initializers" for
CustomFrameView, because CustomFrameView overrides two designated initializers,
but the methods don't call super. The methods throw exceptions, which Clang's
static analyzer isn't smart enough to catch. Declaring the methods with
NS_UNAVAILABLE suppresses the clang warning.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#329971}
chrome/browser/ui/cocoa/custom_frame_view.mm