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/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 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/importer/external_process_importer_host.h" | 30 #include "chrome/browser/importer/external_process_importer_host.h" |
31 #include "chrome/browser/importer/importer_uma.h" | 31 #include "chrome/browser/importer/importer_uma.h" |
32 #include "chrome/browser/platform_util.h" | 32 #include "chrome/browser/platform_util.h" |
33 #include "chrome/browser/profiles/profile.h" | 33 #include "chrome/browser/profiles/profile.h" |
34 #include "chrome/browser/ui/chrome_select_file_policy.h" | 34 #include "chrome/browser/ui/chrome_select_file_policy.h" |
35 #include "chrome/browser/ui/host_desktop.h" | 35 #include "chrome/browser/ui/host_desktop.h" |
36 #include "chrome/common/chrome_paths.h" | 36 #include "chrome/common/chrome_paths.h" |
37 #include "chrome/common/extensions/api/bookmarks.h" | 37 #include "chrome/common/extensions/api/bookmarks.h" |
38 #include "chrome/common/importer/importer_data_types.h" | 38 #include "chrome/common/importer/importer_data_types.h" |
39 #include "chrome/common/pref_names.h" | 39 #include "chrome/common/pref_names.h" |
| 40 #include "components/bookmarks/bookmark_pref_names.h" |
40 #include "components/user_prefs/user_prefs.h" | 41 #include "components/user_prefs/user_prefs.h" |
41 #include "content/public/browser/browser_context.h" | 42 #include "content/public/browser/browser_context.h" |
42 #include "content/public/browser/notification_service.h" | 43 #include "content/public/browser/notification_service.h" |
43 #include "content/public/browser/web_contents.h" | 44 #include "content/public/browser/web_contents.h" |
44 #include "content/public/browser/web_contents_view.h" | 45 #include "content/public/browser/web_contents_view.h" |
45 #include "extensions/browser/event_router.h" | 46 #include "extensions/browser/event_router.h" |
46 #include "extensions/browser/extension_function_dispatcher.h" | 47 #include "extensions/browser/extension_function_dispatcher.h" |
47 #include "extensions/browser/extension_system.h" | 48 #include "extensions/browser/extension_system.h" |
48 #include "extensions/browser/quota_service.h" | 49 #include "extensions/browser/quota_service.h" |
49 #include "grit/generated_resources.h" | 50 #include "grit/generated_resources.h" |
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 #if !defined(OS_ANDROID) | 1014 #if !defined(OS_ANDROID) |
1014 // Android does not have support for the standard exporter. | 1015 // Android does not have support for the standard exporter. |
1015 // TODO(jgreenwald): remove ifdef once extensions are no longer built on | 1016 // TODO(jgreenwald): remove ifdef once extensions are no longer built on |
1016 // Android. | 1017 // Android. |
1017 bookmark_html_writer::WriteBookmarks(GetProfile(), path, NULL); | 1018 bookmark_html_writer::WriteBookmarks(GetProfile(), path, NULL); |
1018 #endif | 1019 #endif |
1019 Release(); // Balanced in BookmarksIOFunction::SelectFile() | 1020 Release(); // Balanced in BookmarksIOFunction::SelectFile() |
1020 } | 1021 } |
1021 | 1022 |
1022 } // namespace extensions | 1023 } // namespace extensions |
OLD | NEW |