| 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" |
| 42 #include "ui/base/l10n/l10n_util.h" | 43 #include "ui/base/l10n/l10n_util.h" |
| 43 #include "ui/base/layout.h" | 44 #include "ui/base/layout.h" |
| 44 #include "ui/base/resource/resource_bundle.h" | 45 #include "ui/base/resource/resource_bundle.h" |
| 45 #include "ui/gfx/image/image_util.h" | 46 #include "ui/gfx/image/image_util.h" |
| 46 | 47 |
| 47 #if defined(OS_CHROMEOS) | 48 #if defined(OS_CHROMEOS) |
| 48 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 49 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 49 #endif | 50 #endif |
| 50 | 51 |
| 51 using base::DictionaryValue; | 52 using base::DictionaryValue; |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 SetTopSites(pages); | 939 SetTopSites(pages); |
| 939 | 940 |
| 940 // Used only in testing. | 941 // Used only in testing. |
| 941 content::NotificationService::current()->Notify( | 942 content::NotificationService::current()->Notify( |
| 942 chrome::NOTIFICATION_TOP_SITES_UPDATED, | 943 chrome::NOTIFICATION_TOP_SITES_UPDATED, |
| 943 content::Source<TopSites>(this), | 944 content::Source<TopSites>(this), |
| 944 content::Details<CancelableRequestProvider::Handle>(&handle)); | 945 content::Details<CancelableRequestProvider::Handle>(&handle)); |
| 945 } | 946 } |
| 946 | 947 |
| 947 } // namespace history | 948 } // namespace history |
| OLD | NEW |