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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 49 |
50 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
51 #include "ui/aura/remote_window_tree_host_win.h" | 51 #include "ui/aura/remote_window_tree_host_win.h" |
52 #endif | 52 #endif |
53 | 53 |
54 using bookmarks::BookmarkModel; | 54 using bookmarks::BookmarkModel; |
| 55 using bookmarks::BookmarkNode; |
55 | 56 |
56 namespace extensions { | 57 namespace extensions { |
57 | 58 |
58 namespace keys = bookmark_api_constants; | 59 namespace keys = bookmark_api_constants; |
59 namespace bookmarks = api::bookmarks; | 60 namespace bookmarks = api::bookmarks; |
60 | 61 |
61 using bookmarks::BookmarkTreeNode; | 62 using bookmarks::BookmarkTreeNode; |
62 using bookmarks::CreateDetails; | 63 using bookmarks::CreateDetails; |
63 using content::BrowserContext; | 64 using content::BrowserContext; |
64 using content::BrowserThread; | 65 using content::BrowserThread; |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 } | 844 } |
844 | 845 |
845 void BookmarksExportFunction::FileSelected(const base::FilePath& path, | 846 void BookmarksExportFunction::FileSelected(const base::FilePath& path, |
846 int index, | 847 int index, |
847 void* params) { | 848 void* params) { |
848 bookmark_html_writer::WriteBookmarks(GetProfile(), path, NULL); | 849 bookmark_html_writer::WriteBookmarks(GetProfile(), path, NULL); |
849 Release(); // Balanced in BookmarksIOFunction::SelectFile() | 850 Release(); // Balanced in BookmarksIOFunction::SelectFile() |
850 } | 851 } |
851 | 852 |
852 } // namespace extensions | 853 } // namespace extensions |
OLD | NEW |