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