Index: chrome/browser/extensions/api/top_sites/top_sites_apitest.cc |
diff --git a/chrome/browser/extensions/api/top_sites/top_sites_apitest.cc b/chrome/browser/extensions/api/top_sites/top_sites_apitest.cc |
index 0cb64275faa4f4c562827c27ee721dcbbec7cd14..d1e36b8c591c763b1e487d49660b4c3598e2dcf9 100644 |
--- a/chrome/browser/extensions/api/top_sites/top_sites_apitest.cc |
+++ b/chrome/browser/extensions/api/top_sites/top_sites_apitest.cc |
@@ -7,6 +7,7 @@ |
#include "chrome/browser/extensions/api/top_sites/top_sites_api.h" |
#include "chrome/browser/extensions/extension_function_test_utils.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/test/base/in_process_browser_test.h" |
@@ -23,7 +24,8 @@ class TopSitesExtensionTest : public InProcessBrowserTest { |
} |
void SetUpOnMainThread() override { |
- history::TopSites* top_sites = browser()->profile()->GetTopSites(); |
+ scoped_refptr<history::TopSites> top_sites = |
+ TopSitesFactory::GetForProfile(browser()->profile()); |
// This may return async or sync. If sync, top_sites_inited_ will be true |
// before we get to the conditional below. Otherwise, we'll run a nested |