From f3c8c0e7caa8fca385a75f3dd5a929fa9aa9f7db Mon Sep 17 00:00:00 2001 From: "avi@google.com" Date: Mon, 27 Apr 2009 18:11:29 +0000 Subject: Now that we have file dialogs, we might as well hook up "Open File" on the Mac. Review URL: http://codereview.chromium.org/93145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14625 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'chrome/browser/browser.cc') diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 50f1eae..ac6701a 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -1016,7 +1016,6 @@ void Browser::FocusSearch() { window_->GetLocationBar()->FocusSearch(); } -#if defined(OS_WIN) || defined(OS_LINUX) void Browser::OpenFile() { UserMetrics::RecordAction(L"OpenFile", profile_); if (!select_file_dialog_.get()) @@ -1029,7 +1028,6 @@ void Browser::OpenFile() { NULL, 0, FILE_PATH_LITERAL(""), parent_window, NULL); } -#endif #if defined(OS_WIN) void Browser::OpenCreateShortcutsDialog() { @@ -1328,9 +1326,7 @@ void Browser::ExecuteCommandWithDisposition( case IDC_FOCUS_SEARCH: FocusSearch(); break; // Show various bits of UI -#if defined(OS_WIN)|| defined(OS_LINUX) case IDC_OPEN_FILE: OpenFile(); break; -#endif #if defined(OS_WIN) case IDC_CREATE_SHORTCUTS: OpenCreateShortcutsDialog(); break; case IDC_DEBUGGER: OpenDebuggerWindow(); break; -- cgit v1.1