Chromium Code Reviews| OLD | NEW |
|---|---|
| 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> | |
|
grt (UTC plus 2)
2017/05/08 08:42:23
while you're at it, please remove <vector> from th
chengx
2017/05/08 20:55:10
Done.
| |
| 8 | |
| 9 #include "base/bind.h" | 7 #include "base/bind.h" |
|
grt (UTC plus 2)
2017/05/08 08:42:23
#include "base/base_paths.h"
chengx
2017/05/08 20:55:10
Done.
| |
| 10 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 11 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 12 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 13 #include "base/macros.h" | 11 #include "base/macros.h" |
|
grt (UTC plus 2)
2017/05/08 08:42:23
remove; already included in .h
chengx
2017/05/08 20:55:10
Done.
| |
| 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" |
| 18 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
|
grt (UTC plus 2)
2017/05/08 08:42:23
#include "base/strings/string16.h
#include "base/s
chengx
2017/05/08 20:55:10
Done.
| |
| 19 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 20 #include "base/task_scheduler/post_task.h" | 18 #include "base/task_scheduler/post_task.h" |
|
grt (UTC plus 2)
2017/05/08 08:42:23
#include "base/task_scheduler/task_traits.h"
chengx
2017/05/08 20:55:10
Done.
| |
| 21 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
| 22 #include "base/threading/thread_restrictions.h" | 20 #include "base/threading/thread_restrictions.h" |
|
grt (UTC plus 2)
2017/05/08 08:42:23
unused; remove
chengx
2017/05/08 20:55:10
Done.
| |
| 23 #include "base/timer/elapsed_timer.h" | 21 #include "base/timer/elapsed_timer.h" |
|
grt (UTC plus 2)
2017/05/08 08:42:23
#include "base/time/time.h"
chengx
2017/05/08 20:55:10
"base/time/time.h" is already included in jumplist
| |
| 24 #include "base/trace_event/trace_event.h" | 22 #include "base/trace_event/trace_event.h" |
| 25 #include "chrome/browser/chrome_notification_types.h" | 23 #include "chrome/browser/chrome_notification_types.h" |
| 26 #include "chrome/browser/favicon/favicon_service_factory.h" | 24 #include "chrome/browser/favicon/favicon_service_factory.h" |
| 27 #include "chrome/browser/history/top_sites_factory.h" | 25 #include "chrome/browser/history/top_sites_factory.h" |
| 28 #include "chrome/browser/metrics/jumplist_metrics_win.h" | 26 #include "chrome/browser/metrics/jumplist_metrics_win.h" |
| 29 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
| 30 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 28 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
| 31 #include "chrome/browser/shell_integration_win.h" | 29 #include "chrome/browser/shell_integration_win.h" |
| 32 #include "chrome/browser/win/jumplist_file_util.h" | 30 #include "chrome/browser/win/jumplist_file_util.h" |
| 33 #include "chrome/common/chrome_constants.h" | 31 #include "chrome/common/chrome_constants.h" |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 728 void JumpList::TopSitesLoaded(history::TopSites* top_sites) { | 726 void JumpList::TopSitesLoaded(history::TopSites* top_sites) { |
| 729 } | 727 } |
| 730 | 728 |
| 731 void JumpList::TopSitesChanged(history::TopSites* top_sites, | 729 void JumpList::TopSitesChanged(history::TopSites* top_sites, |
| 732 ChangeReason change_reason) { | 730 ChangeReason change_reason) { |
| 733 top_sites->GetMostVisitedURLs( | 731 top_sites->GetMostVisitedURLs( |
| 734 base::Bind(&JumpList::OnMostVisitedURLsAvailable, | 732 base::Bind(&JumpList::OnMostVisitedURLsAvailable, |
| 735 weak_ptr_factory_.GetWeakPtr()), | 733 weak_ptr_factory_.GetWeakPtr()), |
| 736 false); | 734 false); |
| 737 } | 735 } |
| OLD | NEW |