summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/memory_purger.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/memory_purger.cc b/chrome/browser/memory_purger.cc
index d230e45..fa85c66 100644
--- a/chrome/browser/memory_purger.cc
+++ b/chrome/browser/memory_purger.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/browser/webdata/web_data_service.h"
+#include "chrome/common/notification_service.h"
#include "chrome/common/render_messages.h"
#include "net/proxy/proxy_resolver.h"
#include "net/url_request/url_request_context.h"
@@ -67,6 +68,12 @@ void PurgeMemoryIOHelper::PurgeMemoryOnIOThread() {
// Close the Safe Browsing database, freeing memory used to cache sqlite as
// well as a number of in-memory structures.
safe_browsing_service_->CloseDatabase();
+
+ // The appcache service listens for this notification.
+ NotificationService::current()->Notify(
+ NotificationType::PURGE_MEMORY,
+ Source<void>(NULL),
+ NotificationService::NoDetails());
}
// -----------------------------------------------------------------------------