Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(942)

Unified Diff: webkit/tools/test_shell/test_shell_mac.mm

Issue 10831108: mac: Fix a few compile errors with the 10.8 SDK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/tools/test_shell/test_shell_mac.mm
diff --git a/webkit/tools/test_shell/test_shell_mac.mm b/webkit/tools/test_shell/test_shell_mac.mm
index 81a927dce3bb05a5295712e8816ffecdd052b65c..258834bd7ae6c4c360eb1593daa93860ab4fc3a4 100644
--- a/webkit/tools/test_shell/test_shell_mac.mm
+++ b/webkit/tools/test_shell/test_shell_mac.mm
@@ -554,14 +554,15 @@ bool TestShell::PromptForSaveFile(const wchar_t* prompt_title,
NSSavePanel* save_panel = [NSSavePanel savePanel];
/* set up new attributes */
- [save_panel setRequiredFileType:@"txt"];
+ [save_panel setAllowedFileTypes:@[@"txt"]];
Robert Sesek 2012/08/01 15:22:30 Snazzy.
[save_panel setMessage:
[NSString stringWithUTF8String:WideToUTF8(prompt_title).c_str()]];
/* display the NSSavePanel */
- if ([save_panel runModalForDirectory:NSHomeDirectory() file:@""] ==
- NSOKButton) {
- *result = FilePath([[save_panel filename] fileSystemRepresentation]);
+ [save_panel setDirectoryURL:[NSURL fileURLWithPath:NSHomeDirectory()]];
+ [save_panel setNameFieldStringValue:@""];
+ if ([save_panel runModal] == NSFileHandlingPanelOKButton) {
+ *result = FilePath([[[save_panel URL] path] fileSystemRepresentation]);
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698