| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/select_file_dialog.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 #include "chrome/browser/ui/views/select_file_dialog_extension.h" | |
| 9 #include "content/public/browser/browser_thread.h" | |
| 10 | |
| 11 using content::BrowserThread; | |
| 12 | |
| 13 // static | |
| 14 SelectFileDialog* SelectFileDialog::Create(Listener* listener, | |
| 15 ui::SelectFilePolicy* policy) { | |
| 16 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | |
| 17 #if defined(USE_ASH) && defined(FILE_MANAGER_EXTENSION) | |
| 18 return SelectFileDialogExtension::Create(listener, policy); | |
| 19 #else | |
| 20 return NULL; | |
| 21 #endif | |
| 22 } | |
| OLD | NEW |