[Mac]: Change rename/add bookmark folder dialog buttons' text to "Save" and "Add" respectively.

Also removes a no-longer necessary -respondsToSelect: check since we no longer support 10.5.

BUG=20053
TEST=Right click on a BMB folder and click edit. Buttons should be "Cancel" and "Save".
Right click on BMB and select "Add Folder...". Buttons should be "Cancel" and "Add".

Review URL: https://chromiumcodereview.appspot.com/10832052

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148851 0039d316-1c4b-4281-b951-d872f2087c98
parent 779862fd
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
......@@ -70,15 +70,10 @@
- (void)awakeFromNib {
[nameField_ setStringValue:initialName_.get()];
[[nameField_ cell] setUsesSingleLineMode:YES];
// Check if NSTextFieldCell supports the method. This check is in place as
// only 10.6 and greater support the setUsesSingleLineMode method.
// TODO(kushi.p): Remove this when the project hits a 10.6+ only state.
NSTextFieldCell* nameFieldCell_ = [nameField_ cell];
if ([nameFieldCell_
respondsToSelector:@selector(setUsesSingleLineMode:)]) {
[nameFieldCell_ setUsesSingleLineMode:YES];
}
[okButton_ setTitle:l10n_util::GetNSStringWithFixup(node_ ? IDS_SAVE :
IDS_ADD)];
}
- (void)runAsModalSheet {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment