| Index: chrome/test/base/testing_profile.cc
|
| diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
|
| index f643b8895833b89dc6a47fcd3daccda4a94636cc..9e09f2e4be5a5baad9f2ab029ddca897eae8f625 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();
|
|
|