| Index: chrome/test/testing_profile.cc
|
| diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
|
| index 243612e3cdc3fc585adb300e9d1bb06fbf767ef4..80e61d6dcef4aad8c328f668dbded51a2052825f 100644
|
| --- a/chrome/test/testing_profile.cc
|
| +++ b/chrome/test/testing_profile.cc
|
| @@ -249,7 +249,7 @@ void TestingProfile::DestroyHistoryService() {
|
| void TestingProfile::CreateTopSites() {
|
| DestroyTopSites();
|
| top_sites_ = new history::TopSites(this);
|
| - FilePath file_name = temp_dir_.path().Append(chrome::kTopSitesFilename);
|
| + FilePath file_name = GetPath().Append(chrome::kTopSitesFilename);
|
| top_sites_->Init(file_name);
|
| }
|
|
|
| @@ -347,9 +347,13 @@ void TestingProfile::UseThemeProvider(BrowserThemeProvider* theme_provider) {
|
| scoped_refptr<ExtensionsService> TestingProfile::CreateExtensionsService(
|
| const CommandLine* command_line,
|
| const FilePath& install_directory) {
|
| + extension_prefs_.reset(new ExtensionPrefs(
|
| + this,
|
| + install_directory));
|
| extensions_service_ = new ExtensionsService(this,
|
| command_line,
|
| install_directory,
|
| + extension_prefs_.get(),
|
| false);
|
| return extensions_service_;
|
| }
|
| @@ -414,6 +418,14 @@ PrefService* TestingProfile::GetPrefs() {
|
| return prefs_.get();
|
| }
|
|
|
| +PrefStore* TestingProfile::GetExtensionPrefStore() {
|
| + return extension_pref_store_;
|
| +}
|
| +
|
| +void TestingProfile::SetExtensionPrefStore(PrefStore* extension_pref_store) {
|
| + extension_pref_store_ = extension_pref_store;
|
| +}
|
| +
|
| history::TopSites* TestingProfile::GetTopSites() {
|
| return top_sites_.get();
|
| }
|
|
|