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/jumplist_win.h" | 5 #include "chrome/browser/jumplist_win.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/macros.h" |
11 #include "base/path_service.h" | 12 #include "base/path_service.h" |
12 #include "base/prefs/pref_change_registrar.h" | 13 #include "base/prefs/pref_change_registrar.h" |
13 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
15 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
16 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
17 #include "chrome/browser/chrome_notification_types.h" | 18 #include "chrome/browser/chrome_notification_types.h" |
18 #include "chrome/browser/favicon/favicon_service_factory.h" | 19 #include "chrome/browser/favicon/favicon_service_factory.h" |
19 #include "chrome/browser/history/top_sites_factory.h" | 20 #include "chrome/browser/history/top_sites_factory.h" |
20 #include "chrome/browser/metrics/jumplist_metrics_win.h" | 21 #include "chrome/browser/metrics/jumplist_metrics_win.h" |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 void JumpList::TopSitesLoaded(history::TopSites* top_sites) { | 533 void JumpList::TopSitesLoaded(history::TopSites* top_sites) { |
533 } | 534 } |
534 | 535 |
535 void JumpList::TopSitesChanged(history::TopSites* top_sites, | 536 void JumpList::TopSitesChanged(history::TopSites* top_sites, |
536 ChangeReason change_reason) { | 537 ChangeReason change_reason) { |
537 top_sites->GetMostVisitedURLs( | 538 top_sites->GetMostVisitedURLs( |
538 base::Bind(&JumpList::OnMostVisitedURLsAvailable, | 539 base::Bind(&JumpList::OnMostVisitedURLsAvailable, |
539 weak_ptr_factory_.GetWeakPtr()), | 540 weak_ptr_factory_.GetWeakPtr()), |
540 false); | 541 false); |
541 } | 542 } |
OLD | NEW |