Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(989)

Unified Diff: chrome/browser/devtools/browser_list_tabcontents_provider.cc

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra inclusion from testing_profile.h Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/devtools/browser_list_tabcontents_provider.cc
diff --git a/chrome/browser/devtools/browser_list_tabcontents_provider.cc b/chrome/browser/devtools/browser_list_tabcontents_provider.cc
index b69e4c32446c5cc3c5879423a695b667b1660d09..47001b55b440d1064fe731da806f4d194132cc2a 100644
--- a/chrome/browser/devtools/browser_list_tabcontents_provider.cc
+++ b/chrome/browser/devtools/browser_list_tabcontents_provider.cc
@@ -6,6 +6,7 @@
#include "base/path_service.h"
#include "chrome/browser/history/top_sites.h"
+#include "chrome/browser/history/top_sites_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_iterator.h"
@@ -28,7 +29,7 @@ std::string BrowserListTabContentsProvider::GetDiscoveryPageHTML() {
for (std::set<Profile*>::iterator it = profiles.begin();
it != profiles.end(); ++it) {
- history::TopSites* ts = (*it)->GetTopSites();
+ scoped_refptr<history::TopSites> ts = TopSitesFactory::GetForProfile(*it);
if (ts) {
// TopSites updates itself after a delay. Ask TopSites to update itself
// when we're about to show the remote debugging landing page.

Powered by Google App Engine
This is Rietveld 408576698