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