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 28 matching lines...) Expand all Loading... |
39 #include "components/bookmarks/browser/bookmark_utils.h" | 39 #include "components/bookmarks/browser/bookmark_utils.h" |
40 #include "components/bookmarks/managed/managed_bookmark_service.h" | 40 #include "components/bookmarks/managed/managed_bookmark_service.h" |
41 #include "components/user_prefs/user_prefs.h" | 41 #include "components/user_prefs/user_prefs.h" |
42 #include "content/public/browser/browser_context.h" | 42 #include "content/public/browser/browser_context.h" |
43 #include "content/public/browser/notification_service.h" | 43 #include "content/public/browser/notification_service.h" |
44 #include "content/public/browser/web_contents.h" | 44 #include "content/public/browser/web_contents.h" |
45 #include "extensions/browser/event_router.h" | 45 #include "extensions/browser/event_router.h" |
46 #include "extensions/browser/extension_function_dispatcher.h" | 46 #include "extensions/browser/extension_function_dispatcher.h" |
47 #include "extensions/browser/notification_types.h" | 47 #include "extensions/browser/notification_types.h" |
48 #include "ui/base/l10n/l10n_util.h" | 48 #include "ui/base/l10n/l10n_util.h" |
| 49 #include "ui/gfx/host_desktop_type.h" |
49 | 50 |
50 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
51 #include "ui/aura/remote_window_tree_host_win.h" | 52 #include "ui/aura/remote_window_tree_host_win.h" |
52 #endif | 53 #endif |
53 | 54 |
54 using bookmarks::BookmarkModel; | 55 using bookmarks::BookmarkModel; |
55 using bookmarks::BookmarkNode; | 56 using bookmarks::BookmarkNode; |
56 using bookmarks::ManagedBookmarkService; | 57 using bookmarks::ManagedBookmarkService; |
57 | 58 |
58 namespace extensions { | 59 namespace extensions { |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 } | 850 } |
850 | 851 |
851 void BookmarksExportFunction::FileSelected(const base::FilePath& path, | 852 void BookmarksExportFunction::FileSelected(const base::FilePath& path, |
852 int index, | 853 int index, |
853 void* params) { | 854 void* params) { |
854 bookmark_html_writer::WriteBookmarks(GetProfile(), path, NULL); | 855 bookmark_html_writer::WriteBookmarks(GetProfile(), path, NULL); |
855 Release(); // Balanced in BookmarksIOFunction::SelectFile() | 856 Release(); // Balanced in BookmarksIOFunction::SelectFile() |
856 } | 857 } |
857 | 858 |
858 } // namespace extensions | 859 } // namespace extensions |
OLD | NEW |