| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 619ff135c7e3f9db05e51ec4498cf5c896e395bf..678fbfa68cbe7a9e766331f5f58df2b0955b285f 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -14,6 +14,7 @@
|
| #include "base/path_service.h"
|
| #include "base/string_number_conversions.h"
|
| #include "base/string_util.h"
|
| +#include "base/synchronization/waitable_event.h"
|
| #include "chrome/browser/autocomplete/autocomplete_classifier.h"
|
| #include "chrome/browser/autofill/personal_data_manager.h"
|
| #include "chrome/browser/background/background_contents_service_factory.h"
|
| @@ -1337,8 +1338,7 @@ void ProfileImpl::CreateQuotaManagerAndClients() {
|
| IsOffTheRecord()
|
| ? FilePath() : GetPath().Append(chrome::kAppCacheDirname),
|
| &GetResourceContext(),
|
| - make_scoped_refptr(GetExtensionSpecialStoragePolicy()),
|
| - clear_local_state_on_exit_));
|
| + make_scoped_refptr(GetExtensionSpecialStoragePolicy())));
|
| }
|
|
|
| WebKitContext* ProfileImpl::GetWebKitContext() {
|
| @@ -1393,10 +1393,6 @@ void ProfileImpl::Observe(int type,
|
| webkit_context_->set_clear_local_state_on_exit(
|
| clear_local_state_on_exit_);
|
| }
|
| - if (appcache_service_) {
|
| - appcache_service_->SetClearLocalStateOnExit(
|
| - clear_local_state_on_exit_);
|
| - }
|
| if (db_tracker_) {
|
| db_tracker_->SetClearLocalStateOnExit(
|
| clear_local_state_on_exit_);
|
| @@ -1659,3 +1655,9 @@ prerender::PrerenderManager* ProfileImpl::GetPrerenderManager() {
|
| }
|
| return prerender_manager_.get();
|
| }
|
| +
|
| +base::WaitableEvent* ProfileImpl::ClearAppCache() {
|
| + if (appcache_service_ && prefs_->GetBoolean(prefs::kClearSiteDataOnExit))
|
| + return appcache_service_->ClearAppCache(NULL);
|
| + return NULL;
|
| +}
|
|
|