Chromium Code Reviews| Index: chrome/browser/browsing_data_remover_unittest.cc |
| diff --git a/chrome/browser/browsing_data_remover_unittest.cc b/chrome/browser/browsing_data_remover_unittest.cc |
| index 489efa7b6de50399fcae10489a15108ebeca9c01..64b638cd2766b1f7a2648b5adb2a73e879f68ed7 100644 |
| --- a/chrome/browser/browsing_data_remover_unittest.cc |
| +++ b/chrome/browser/browsing_data_remover_unittest.cc |
| @@ -361,24 +361,15 @@ TEST_F(BrowsingDataRemoverTest, RemoveFileSystemsForever) { |
| } |
| TEST_F(BrowsingDataRemoverTest, RemoveAppCacheForever) { |
| - // Set up ChromeAppCacheService. |
| - scoped_refptr<ChromeAppCacheService> appcache_service = |
| - new ChromeAppCacheService(NULL); |
| - const content::ResourceContext* resource_context = NULL; |
| + // Set up ChromeAppCacheService with a single protected origin |
| scoped_refptr<MockExtensionSpecialStoragePolicy> mock_policy = |
| new MockExtensionSpecialStoragePolicy; |
| mock_policy->AddProtected(kProtectedManifest.GetOrigin()); |
| - BrowserThread::PostTask( |
| - BrowserThread::IO, FROM_HERE, |
| - NewRunnableMethod(appcache_service.get(), |
| - &ChromeAppCacheService::InitializeOnIOThread, |
| - FilePath(), |
| - resource_context, |
| - mock_policy, |
| - false)); |
| - MessageLoop::current()->RunAllPending(); |
|
michaeln
2011/07/22 00:09:58
the call is RunAllPending is gone now... is that o
|
| + GetProfile()->SetExtensionSpecialStoragePolicy(mock_policy); |
| + scoped_refptr<ChromeAppCacheService> appcache_service = |
| + GetProfile()->GetAppCacheService(); |
| + |
| TestingProfile* profile = GetProfile(); |
| - profile->SetAppCacheService(appcache_service); |
| profile->SetExtensionSpecialStoragePolicy(mock_policy); |
|
michaeln
2011/07/22 00:09:58
since the policy is now set up on line 368, no lon
|
| // Add data into the AppCacheStorage. |