| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extension_bookmarks_module.h" | 5 #include "chrome/browser/extensions/extension_bookmarks_module.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/i18n/file_util_icu.h" | 8 #include "base/i18n/file_util_icu.h" |
| 9 #include "base/i18n/time_formatting.h" | 9 #include "base/i18n/time_formatting.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/sha1.h" | 12 #include "base/sha1.h" |
| 13 #include "base/stl_util-inl.h" | 13 #include "base/stl_util.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "base/string_number_conversions.h" | 15 #include "base/string_number_conversions.h" |
| 16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
| 19 #include "chrome/browser/bookmarks/bookmark_codec.h" | 19 #include "chrome/browser/bookmarks/bookmark_codec.h" |
| 20 #include "chrome/browser/bookmarks/bookmark_html_writer.h" | 20 #include "chrome/browser/bookmarks/bookmark_html_writer.h" |
| 21 #include "chrome/browser/bookmarks/bookmark_model.h" | 21 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 22 #include "chrome/browser/bookmarks/bookmark_utils.h" | 22 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 23 #include "chrome/browser/extensions/extension_bookmark_helpers.h" | 23 #include "chrome/browser/extensions/extension_bookmark_helpers.h" |
| (...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 SelectFile(SelectFileDialog::SELECT_SAVEAS_FILE); | 928 SelectFile(SelectFileDialog::SELECT_SAVEAS_FILE); |
| 929 return true; | 929 return true; |
| 930 } | 930 } |
| 931 | 931 |
| 932 void ExportBookmarksFunction::FileSelected(const FilePath& path, | 932 void ExportBookmarksFunction::FileSelected(const FilePath& path, |
| 933 int index, | 933 int index, |
| 934 void* params) { | 934 void* params) { |
| 935 bookmark_html_writer::WriteBookmarks(profile(), path, NULL); | 935 bookmark_html_writer::WriteBookmarks(profile(), path, NULL); |
| 936 Release(); // Balanced in BookmarksIOFunction::SelectFile() | 936 Release(); // Balanced in BookmarksIOFunction::SelectFile() |
| 937 } | 937 } |
| OLD | NEW |