| Index: chrome/browser/ui/views/frame/global_menu_bar_x11.cc
|
| diff --git a/chrome/browser/ui/views/frame/global_menu_bar_x11.cc b/chrome/browser/ui/views/frame/global_menu_bar_x11.cc
|
| index a19b2c3aba8f64d1b7c0c390bdb482a92e3ddea5..67d7262d57b7a97a6656c207ebc30e149b9e8e5b 100644
|
| --- a/chrome/browser/ui/views/frame/global_menu_bar_x11.cc
|
| +++ b/chrome/browser/ui/views/frame/global_menu_bar_x11.cc
|
| @@ -17,7 +17,8 @@
|
| #include "chrome/app/chrome_command_ids.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| -#include "chrome/browser/history/top_sites.h"
|
| +#include "chrome/browser/history/top_sites_provider.h"
|
| +#include "chrome/browser/history/top_sites_service_factory.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_info_cache.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| @@ -426,14 +427,14 @@ void GlobalMenuBarX11::InitServer(unsigned long xid) {
|
| base::Unretained(this)));
|
| OnBookmarkBarVisibilityChanged();
|
|
|
| - top_sites_ = profile_->GetTopSites();
|
| + top_sites_ = TopSitesServiceFactory::GetForProfile(profile_);
|
| if (top_sites_) {
|
| GetTopSitesData();
|
|
|
| // Register for notification when TopSites changes so that we can update
|
| // ourself.
|
| registrar_.Add(this, chrome::NOTIFICATION_TOP_SITES_CHANGED,
|
| - content::Source<history::TopSites>(top_sites_));
|
| + content::Source<history::TopSitesProvider>(top_sites_));
|
| }
|
|
|
| ProfileManager* profile_manager = g_browser_process->profile_manager();
|
|
|