summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-16 19:37:29 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-16 19:37:29 +0000
commitb4d34f0d5bf2c8ac2663d70bb70a257845529a9d (patch)
tree0750769d3bd2d9c1f6a107ebaba02d2f9f181e77
parentf00b67d87e761e04da9e760498dc252e68ac7d0a (diff)
downloadchromium_src-b4d34f0d5bf2c8ac2663d70bb70a257845529a9d.zip
chromium_src-b4d34f0d5bf2c8ac2663d70bb70a257845529a9d.tar.gz
chromium_src-b4d34f0d5bf2c8ac2663d70bb70a257845529a9d.tar.bz2
Make Mac SelectFileDialogImpl load SaveAccessoryView.nib from the proper
bundle. BUG=24923 TEST=File:Save Page As… should work and offer a Format pop-up menu Review URL: http://codereview.chromium.org/285003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29311 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/cocoa/shell_dialogs_mac.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/shell_dialogs_mac.mm b/chrome/browser/cocoa/shell_dialogs_mac.mm
index 9b58360..ad9999e 100644
--- a/chrome/browser/cocoa/shell_dialogs_mac.mm
+++ b/chrome/browser/cocoa/shell_dialogs_mac.mm
@@ -10,6 +10,7 @@
#include <set>
#include "base/logging.h"
+#include "base/mac_util.h"
#include "base/scoped_cftyperef.h"
#import "base/scoped_nsobject.h"
#include "base/sys_string_conversions.h"
@@ -239,7 +240,8 @@ NSView* SelectFileDialogImpl::GetAccessoryView(const FileTypeInfo* file_types,
int file_type_index) {
DCHECK(file_types);
scoped_nsobject<NSNib> nib (
- [[NSNib alloc] initWithNibNamed:@"SaveAccessoryView" bundle:nil]);
+ [[NSNib alloc] initWithNibNamed:@"SaveAccessoryView"
+ bundle:mac_util::MainAppBundle()]);
if (!nib)
return nil;