| Index: chrome/test/testing_profile.cc
|
| diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
|
| index 243612e3cdc3fc585adb300e9d1bb06fbf767ef4..df930f15cd70bd42234fa7fe2e45dde8d576ba6b 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,14 @@ 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,
|
| + GetPrefs(),
|
| + install_directory));
|
| extensions_service_ = new ExtensionsService(this,
|
| command_line,
|
| install_directory,
|
| + extension_prefs_.get(),
|
| false);
|
| return extensions_service_;
|
| }
|
| @@ -414,6 +419,14 @@ PrefService* TestingProfile::GetPrefs() {
|
| return prefs_.get();
|
| }
|
|
|
| +PrefStore* TestingProfile::GetExtensionPrefStore() {
|
| + return ext_pref_store_;
|
| +}
|
| +
|
| +void TestingProfile::SetExtensionPrefStore(PrefStore* ext_pref_store) {
|
| + ext_pref_store_ = ext_pref_store;
|
| +}
|
| +
|
| history::TopSites* TestingProfile::GetTopSites() {
|
| return top_sites_.get();
|
| }
|
|
|