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

Side by Side Diff: chrome/utility/importer/importer_creator.cc

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another gyp attempt Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/utility/importer/importer_creator.h ('k') | chrome/utility/importer/nss_decryptor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "chrome/utility/importer/importer_creator.h"
6
7 #include "base/logging.h"
8 #include "chrome/utility/importer/bookmarks_file_importer.h"
9 #include "chrome/utility/importer/firefox3_importer.h"
10
11 #if defined(OS_WIN)
12 #include "chrome/utility/importer/ie_importer_win.h"
13 #endif
14
15 #if defined(OS_MACOSX)
16 #include <CoreFoundation/CoreFoundation.h>
17
18 #include "base/mac/foundation_util.h"
19 #include "chrome/utility/importer/safari_importer.h"
20 #endif
21
22 namespace importer {
23
24 Importer* CreateImporterByType(ImporterType type) {
25 switch (type) {
26 #if defined(OS_WIN)
27 case TYPE_IE:
28 return new IEImporter();
29 #endif
30 case TYPE_BOOKMARKS_FILE:
31 return new BookmarksFileImporter();
32 case TYPE_FIREFOX3:
33 return new Firefox3Importer();
34 #if defined(OS_MACOSX)
35 case TYPE_SAFARI:
36 return new SafariImporter(base::mac::GetUserLibraryPath());
37 #endif
38 default:
39 NOTREACHED();
40 return NULL;
41 }
42 }
43
44 } // namespace importer
OLDNEW
« no previous file with comments | « chrome/utility/importer/importer_creator.h ('k') | chrome/utility/importer/nss_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698