Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: chrome/browser/win/jumplist.cc

Issue 2861393002: Fix to include correct header files in jumplist.{h, cc} (Closed)
Patch Set: Git pull Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/win/jumplist.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/win/jumplist.h" 5 #include "chrome/browser/win/jumplist.h"
6 6
7 #include <utility> 7 #include "base/base_paths.h"
8
9 #include "base/bind.h" 8 #include "base/bind.h"
10 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
11 #include "base/command_line.h" 10 #include "base/command_line.h"
12 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
13 #include "base/macros.h"
14 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
15 #include "base/path_service.h" 13 #include "base/path_service.h"
16 #include "base/sequenced_task_runner.h" 14 #include "base/sequenced_task_runner.h"
17 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
16 #include "base/strings/string_piece.h"
18 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
19 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
20 #include "base/task_scheduler/post_task.h" 19 #include "base/task_scheduler/post_task.h"
20 #include "base/task_scheduler/task_traits.h"
21 #include "base/threading/thread.h" 21 #include "base/threading/thread.h"
22 #include "base/threading/thread_restrictions.h"
23 #include "base/timer/elapsed_timer.h" 22 #include "base/timer/elapsed_timer.h"
24 #include "base/trace_event/trace_event.h" 23 #include "base/trace_event/trace_event.h"
25 #include "chrome/browser/chrome_notification_types.h" 24 #include "chrome/browser/chrome_notification_types.h"
26 #include "chrome/browser/favicon/favicon_service_factory.h" 25 #include "chrome/browser/favicon/favicon_service_factory.h"
27 #include "chrome/browser/history/top_sites_factory.h" 26 #include "chrome/browser/history/top_sites_factory.h"
28 #include "chrome/browser/metrics/jumplist_metrics_win.h" 27 #include "chrome/browser/metrics/jumplist_metrics_win.h"
29 #include "chrome/browser/profiles/profile.h" 28 #include "chrome/browser/profiles/profile.h"
30 #include "chrome/browser/sessions/tab_restore_service_factory.h" 29 #include "chrome/browser/sessions/tab_restore_service_factory.h"
31 #include "chrome/browser/shell_integration_win.h" 30 #include "chrome/browser/shell_integration_win.h"
32 #include "chrome/browser/win/jumplist_file_util.h" 31 #include "chrome/browser/win/jumplist_file_util.h"
33 #include "chrome/common/chrome_constants.h" 32 #include "chrome/common/chrome_constants.h"
34 #include "chrome/common/chrome_icon_resources_win.h" 33 #include "chrome/common/chrome_icon_resources_win.h"
35 #include "chrome/common/chrome_switches.h" 34 #include "chrome/common/chrome_switches.h"
36 #include "chrome/common/pref_names.h" 35 #include "chrome/common/pref_names.h"
37 #include "chrome/common/url_constants.h"
38 #include "chrome/grit/generated_resources.h" 36 #include "chrome/grit/generated_resources.h"
39 #include "chrome/install_static/install_util.h" 37 #include "chrome/install_static/install_util.h"
40 #include "components/favicon/core/favicon_service.h" 38 #include "components/favicon/core/favicon_service.h"
41 #include "components/favicon_base/favicon_types.h"
42 #include "components/history/core/browser/history_service.h"
43 #include "components/history/core/browser/page_usage_data.h"
44 #include "components/history/core/browser/top_sites.h" 39 #include "components/history/core/browser/top_sites.h"
45 #include "components/prefs/pref_change_registrar.h" 40 #include "components/prefs/pref_change_registrar.h"
46 #include "components/sessions/core/session_types.h" 41 #include "components/sessions/core/session_types.h"
47 #include "components/sessions/core/tab_restore_service.h"
48 #include "components/strings/grit/components_strings.h" 42 #include "components/strings/grit/components_strings.h"
49 #include "content/public/browser/browser_thread.h"
50 #include "content/public/browser/notification_registrar.h"
51 #include "content/public/browser/notification_source.h"
52 #include "ui/base/l10n/l10n_util.h" 43 #include "ui/base/l10n/l10n_util.h"
53 #include "ui/gfx/codec/png_codec.h" 44 #include "ui/gfx/codec/png_codec.h"
54 #include "ui/gfx/favicon_size.h" 45 #include "ui/gfx/favicon_size.h"
55 #include "ui/gfx/icon_util.h" 46 #include "ui/gfx/icon_util.h"
56 #include "ui/gfx/image/image.h" 47 #include "ui/gfx/image/image.h"
57 #include "ui/gfx/image/image_family.h" 48 #include "ui/gfx/image/image_family.h"
58 #include "ui/gfx/image/image_skia.h" 49 #include "ui/gfx/image/image_skia.h"
59 #include "ui/gfx/image/image_skia_rep.h" 50 #include "ui/gfx/image/image_skia_rep.h"
60 #include "url/gurl.h" 51 #include "url/gurl.h"
61 52
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 app_id, profile_dir, local_most_visited_pages, 742 app_id, profile_dir, local_most_visited_pages,
752 local_recently_closed_pages, most_visited_pages_have_updates, 743 local_recently_closed_pages, most_visited_pages_have_updates,
753 recently_closed_pages_have_updates, incognito_availability)) { 744 recently_closed_pages_have_updates, incognito_availability)) {
754 base::AutoLock auto_lock(data->list_lock_); 745 base::AutoLock auto_lock(data->list_lock_);
755 if (most_visited_pages_have_updates) 746 if (most_visited_pages_have_updates)
756 data->most_visited_pages_have_updates_ = true; 747 data->most_visited_pages_have_updates_ = true;
757 if (recently_closed_pages_have_updates) 748 if (recently_closed_pages_have_updates)
758 data->recently_closed_pages_have_updates_ = true; 749 data->recently_closed_pages_have_updates_ = true;
759 } 750 }
760 } 751 }
OLDNEW
« no previous file with comments | « chrome/browser/win/jumplist.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698