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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 671593002: Do not delay most visited results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed slow mv return condition and added unit tests Created 6 years, 2 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/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index be0e04fb75556eaa024b35c21bfea2cb0b5a753a..7227b48683f11d29b783704a4c77e5c0b960d695 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -531,6 +531,11 @@ void TestingProfile::CreateTopSites() {
this, GetPath().Append(chrome::kTopSitesFilename));
}
+void TestingProfile::SetTopSites(history::TopSites* top_sites) {
+ DestroyTopSites();
+ top_sites_ = top_sites;
+}
+
void TestingProfile::DestroyTopSites() {
if (top_sites_.get()) {
top_sites_->Shutdown();

Powered by Google App Engine
This is Rietveld 408576698