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

Unified Diff: ui/base/dialogs/select_file_dialog.cc

Issue 10829021: Use current gtk dialogs in linux_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: derat nits 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
« no previous file with comments | « chrome/browser/ui/libgtk2ui/select_file_dialog_impl_kde.cc ('k') | ui/base/linux_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dialogs/select_file_dialog.cc
diff --git a/ui/base/dialogs/select_file_dialog.cc b/ui/base/dialogs/select_file_dialog.cc
index b35d0be8f1e7e335b17699a8fe616dc8fc9f7ba8..120faef82a744a5596e67069a7eb50fa41b8929d 100644
--- a/ui/base/dialogs/select_file_dialog.cc
+++ b/ui/base/dialogs/select_file_dialog.cc
@@ -12,6 +12,7 @@
#include "ui/base/dialogs/select_file_dialog_factory.h"
#include "ui/base/dialogs/select_file_policy.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/linux_ui.h"
#if defined(OS_WIN)
#include "ui/base/dialogs/select_file_dialog_win.h"
@@ -67,9 +68,12 @@ SelectFileDialog* SelectFileDialog::Create(Listener* listener,
return dialog;
}
- // TODO(erg): Proxy to LinuxUI here.
+#if defined(USE_AURA) && !defined(USE_ASH) && defined(OS_LINUX)
+ const ui::LinuxUI* linux_ui = ui::LinuxUI::instance();
+ if (linux_ui)
+ return linux_ui->CreateSelectFileDialog(listener, policy);
+#endif
- // TODO(erg): Add other OSs one by one here.
#if defined(OS_WIN) && !defined(USE_AURA)
// TODO(port): The windows people need this to work in aura, too.
return CreateWinSelectFileDialog(listener, policy);
« no previous file with comments | « chrome/browser/ui/libgtk2ui/select_file_dialog_impl_kde.cc ('k') | ui/base/linux_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698