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

Unified Diff: chrome/browser/memory_purger.cc

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 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/browser/memory_purger.cc
diff --git a/chrome/browser/memory_purger.cc b/chrome/browser/memory_purger.cc
index 98ab3011652cfb788548ee695897a33380e4e56a..6edceffb081df6555dfa90e21737fce86b3adea2 100644
--- a/chrome/browser/memory_purger.cc
+++ b/chrome/browser/memory_purger.cc
@@ -117,11 +117,10 @@ void MemoryPurger::PurgeBrowser() {
history_service->UnloadBackend();
// Unload all web databases (freeing memory used to cache sqlite).
- WebDataServiceWrapper* wds_wrapper =
- WebDataServiceFactory::GetForProfileIfExists(
- profiles[i], Profile::EXPLICIT_ACCESS);
- if (wds_wrapper && wds_wrapper->GetWebData())
- wds_wrapper->GetWebData()->UnloadDatabase();
+ scoped_refptr<WebDataService> wds =
+ WebDataServiceFactory::GetWebDataServiceForProfileIfExists(profiles[i]);
+ if (wds)
+ wds->UnloadDatabase();
BrowserContext::PurgeMemory(profiles[i]);
}

Powered by Google App Engine
This is Rietveld 408576698