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/bookmarks/bookmark_html_writer.h" | 5 #include "chrome/browser/bookmarks/bookmark_html_writer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/time/time.h" | 23 #include "base/time/time.h" |
24 #include "base/values.h" | 24 #include "base/values.h" |
25 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 25 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
26 #include "chrome/browser/chrome_notification_types.h" | 26 #include "chrome/browser/chrome_notification_types.h" |
27 #include "chrome/browser/favicon/favicon_service_factory.h" | 27 #include "chrome/browser/favicon/favicon_service_factory.h" |
28 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
29 #include "components/bookmarks/browser/bookmark_codec.h" | 29 #include "components/bookmarks/browser/bookmark_codec.h" |
30 #include "components/bookmarks/browser/bookmark_model.h" | 30 #include "components/bookmarks/browser/bookmark_model.h" |
31 #include "components/favicon/core/favicon_service.h" | 31 #include "components/favicon/core/favicon_service.h" |
32 #include "components/favicon_base/favicon_types.h" | 32 #include "components/favicon_base/favicon_types.h" |
| 33 #include "components/strings/grit/components_strings.h" |
33 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
34 #include "content/public/browser/notification_source.h" | 35 #include "content/public/browser/notification_source.h" |
35 #include "grit/components_strings.h" | |
36 #include "net/base/escape.h" | 36 #include "net/base/escape.h" |
37 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
38 #include "ui/gfx/favicon_size.h" | 38 #include "ui/gfx/favicon_size.h" |
39 | 39 |
40 using bookmarks::BookmarkCodec; | 40 using bookmarks::BookmarkCodec; |
41 using bookmarks::BookmarkNode; | 41 using bookmarks::BookmarkNode; |
42 using content::BrowserThread; | 42 using content::BrowserThread; |
43 | 43 |
44 namespace { | 44 namespace { |
45 | 45 |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 // BookmarkModel isn't thread safe (nor would we want to lock it down | 515 // BookmarkModel isn't thread safe (nor would we want to lock it down |
516 // for the duration of the write), as such we make a copy of the | 516 // for the duration of the write), as such we make a copy of the |
517 // BookmarkModel using BookmarkCodec then write from that. | 517 // BookmarkModel using BookmarkCodec then write from that. |
518 if (!g_fetcher) { | 518 if (!g_fetcher) { |
519 g_fetcher = new BookmarkFaviconFetcher(profile, path, observer); | 519 g_fetcher = new BookmarkFaviconFetcher(profile, path, observer); |
520 g_fetcher->ExportBookmarks(); | 520 g_fetcher->ExportBookmarks(); |
521 } | 521 } |
522 } | 522 } |
523 | 523 |
524 } // namespace bookmark_html_writer | 524 } // namespace bookmark_html_writer |
OLD | NEW |