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

Side by Side Diff: chrome/browser/extensions/api/bookmarks/bookmarks_api.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
OLDNEW
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/extensions/api/bookmarks/bookmarks_api.h" 5 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/i18n/file_util_icu.h" 9 #include "base/i18n/file_util_icu.h"
10 #include "base/i18n/time_formatting.h" 10 #include "base/i18n/time_formatting.h"
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 25 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
26 #include "chrome/browser/bookmarks/bookmark_utils.h" 26 #include "chrome/browser/bookmarks/bookmark_utils.h"
27 #include "chrome/browser/chrome_notification_types.h" 27 #include "chrome/browser/chrome_notification_types.h"
28 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_constants.h" 28 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_constants.h"
29 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.h" 29 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.h"
30 #include "chrome/browser/extensions/event_router.h" 30 #include "chrome/browser/extensions/event_router.h"
31 #include "chrome/browser/extensions/extension_function_dispatcher.h" 31 #include "chrome/browser/extensions/extension_function_dispatcher.h"
32 #include "chrome/browser/extensions/extension_system.h" 32 #include "chrome/browser/extensions/extension_system.h"
33 #include "chrome/browser/extensions/extensions_quota_service.h" 33 #include "chrome/browser/extensions/extensions_quota_service.h"
34 #include "chrome/browser/importer/external_process_importer_host.h" 34 #include "chrome/browser/importer/external_process_importer_host.h"
35 #include "chrome/browser/importer/importer_creator.h" 35 #include "chrome/browser/importer/importer_uma.h"
36 #include "chrome/browser/platform_util.h" 36 #include "chrome/browser/platform_util.h"
37 #include "chrome/browser/profiles/profile.h" 37 #include "chrome/browser/profiles/profile.h"
38 #include "chrome/browser/ui/chrome_select_file_policy.h" 38 #include "chrome/browser/ui/chrome_select_file_policy.h"
39 #include "chrome/browser/ui/host_desktop.h" 39 #include "chrome/browser/ui/host_desktop.h"
40 #include "chrome/common/chrome_paths.h" 40 #include "chrome/common/chrome_paths.h"
41 #include "chrome/common/extensions/api/bookmarks.h" 41 #include "chrome/common/extensions/api/bookmarks.h"
42 #include "chrome/common/importer/importer_data_types.h" 42 #include "chrome/common/importer/importer_data_types.h"
43 #include "chrome/common/pref_names.h" 43 #include "chrome/common/pref_names.h"
44 #include "components/user_prefs/user_prefs.h" 44 #include "components/user_prefs/user_prefs.h"
45 #include "content/public/browser/notification_service.h" 45 #include "content/public/browser/notification_service.h"
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 #if !defined(OS_ANDROID) 1021 #if !defined(OS_ANDROID)
1022 // Android does not have support for the standard exporter. 1022 // Android does not have support for the standard exporter.
1023 // TODO(jgreenwald): remove ifdef once extensions are no longer built on 1023 // TODO(jgreenwald): remove ifdef once extensions are no longer built on
1024 // Android. 1024 // Android.
1025 bookmark_html_writer::WriteBookmarks(profile(), path, NULL); 1025 bookmark_html_writer::WriteBookmarks(profile(), path, NULL);
1026 #endif 1026 #endif
1027 Release(); // Balanced in BookmarksIOFunction::SelectFile() 1027 Release(); // Balanced in BookmarksIOFunction::SelectFile()
1028 } 1028 }
1029 1029
1030 } // namespace extensions 1030 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer_unittest.cc ('k') | chrome/browser/first_run/first_run.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698