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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 6077005: Refactored app cache clear on exit code to happen in the object owning the files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fixes. Created 9 years, 12 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/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 34a50fc0880b442297952a0ec7dbe30de900d235..ce35efe671644c8b60c828f0f7f43f6283aef7ba 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -575,7 +575,8 @@ ChromeAppCacheService* ProfileImpl::GetAppCacheService() {
NewRunnableMethod(appcache_service_.get(),
&ChromeAppCacheService::InitializeOnIOThread,
GetPath(), IsOffTheRecord(),
- make_scoped_refptr(GetHostContentSettingsMap())));
+ make_scoped_refptr(GetHostContentSettingsMap()),
+ clear_local_state_on_exit_));
}
return appcache_service_;
}
@@ -1217,6 +1218,9 @@ void ProfileImpl::Observe(NotificationType type,
if (webkit_context_)
webkit_context_->set_clear_local_state_on_exit(
clear_local_state_on_exit_);
+ if (appcache_service_)
jochen (gone - plz use gerrit) 2011/01/05 12:29:51 use { ... }
pastarmovj 2011/01/05 13:47:38 Done.
+ appcache_service_->SetClearLocalStateOnExit(
+ clear_local_state_on_exit_);
}
} else if (NotificationType::THEME_INSTALLED == type) {
DCHECK_EQ(Source<Profile>(source).ptr(), GetOriginalProfile());

Powered by Google App Engine
This is Rietveld 408576698