1 // Copyright 2013 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.
5 #include "chrome/utility/importer/importer_creator.h"
7 #include "base/logging.h"
8 #include "chrome/utility/importer/bookmarks_file_importer.h"
9 #include "chrome/utility/importer/firefox_importer.h"
12 #include "chrome/utility/importer/ie_importer_win.h"
15 #if defined(OS_MACOSX)
16 #include <CoreFoundation/CoreFoundation.h>
18 #include "base/mac/foundation_util.h"
19 #include "chrome/utility/importer/safari_importer.h"
24 Importer
* CreateImporterByType(ImporterType type
) {
28 return new IEImporter();
30 case TYPE_BOOKMARKS_FILE
:
31 return new BookmarksFileImporter();
33 return new FirefoxImporter();
34 #if defined(OS_MACOSX)
36 return new SafariImporter(base::mac::GetUserLibraryPath());
44 } // namespace importer