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/history/top_sites.h" | 5 #include "chrome/browser/history/top_sites.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
33 #include "content/public/browser/navigation_controller.h" | 33 #include "content/public/browser/navigation_controller.h" |
34 #include "content/public/browser/navigation_details.h" | 34 #include "content/public/browser/navigation_details.h" |
35 #include "content/public/browser/navigation_entry.h" | 35 #include "content/public/browser/navigation_entry.h" |
36 #include "content/public/browser/notification_service.h" | 36 #include "content/public/browser/notification_service.h" |
37 #include "content/public/browser/web_contents.h" | 37 #include "content/public/browser/web_contents.h" |
38 #include "grit/chromium_strings.h" | 38 #include "grit/chromium_strings.h" |
39 #include "grit/generated_resources.h" | 39 #include "grit/generated_resources.h" |
40 #include "grit/locale_settings.h" | 40 #include "grit/locale_settings.h" |
41 #include "grit/theme_resources.h" | 41 #include "grit/theme_resources.h" |
42 #include "grit/theme_resources_standard.h" | |
43 #include "ui/base/l10n/l10n_util.h" | 42 #include "ui/base/l10n/l10n_util.h" |
44 #include "ui/base/layout.h" | 43 #include "ui/base/layout.h" |
45 #include "ui/base/resource/resource_bundle.h" | 44 #include "ui/base/resource/resource_bundle.h" |
46 #include "ui/gfx/image/image_util.h" | 45 #include "ui/gfx/image/image_util.h" |
47 | 46 |
48 #if defined(OS_CHROMEOS) | 47 #if defined(OS_CHROMEOS) |
49 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 48 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
50 #endif | 49 #endif |
51 | 50 |
52 using base::DictionaryValue; | 51 using base::DictionaryValue; |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 SetTopSites(pages); | 938 SetTopSites(pages); |
940 | 939 |
941 // Used only in testing. | 940 // Used only in testing. |
942 content::NotificationService::current()->Notify( | 941 content::NotificationService::current()->Notify( |
943 chrome::NOTIFICATION_TOP_SITES_UPDATED, | 942 chrome::NOTIFICATION_TOP_SITES_UPDATED, |
944 content::Source<TopSites>(this), | 943 content::Source<TopSites>(this), |
945 content::Details<CancelableRequestProvider::Handle>(&handle)); | 944 content::Details<CancelableRequestProvider::Handle>(&handle)); |
946 } | 945 } |
947 | 946 |
948 } // namespace history | 947 } // namespace history |
OLD | NEW |