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

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

Issue 9425026: Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't u… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix race condition Created 8 years, 10 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
===================================================================
--- chrome/browser/profiles/profile_impl.cc (revision 122771)
+++ chrome/browser/profiles/profile_impl.cc (working copy)
@@ -101,6 +101,7 @@
#include "grit/locale_settings.h"
#include "net/base/transport_security_state.h"
#include "net/http/http_server_properties.h"
+#include "webkit/appcache/appcache_service.h"
#include "webkit/database/database_tracker.h"
#if defined(OS_WIN)
@@ -174,12 +175,11 @@
void SaveSessionStateOnIOThread(
net::URLRequestContextGetter* url_request_context_getter,
- ChromeAppCacheService* appcache_service) {
+ appcache::AppCacheService* appcache_service) {
Jói 2012/02/20 23:13:49 perhaps DCHECK on this not being NULL since you re
jam 2012/02/21 01:20:13 I'm personally not a fan of DCHECKing that a point
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
url_request_context_getter->GetURLRequestContext()->cookie_store()->
GetCookieMonster()->SaveSessionCookies();
- if (appcache_service)
- appcache_service->set_save_session_state(true);
+ appcache_service->set_save_session_state(true);
}
} // namespace
@@ -551,7 +551,7 @@
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&appcache::AppCacheService::set_clear_local_state_on_exit,
- BrowserContext::GetAppCacheService(this), true));
+ base::Unretained(BrowserContext::GetAppCacheService(this)), true));
BrowserContext::GetWebKitContext(this)->set_clear_local_state_on_exit(true);
BrowserContext::GetDatabaseTracker(this)->SetClearLocalStateOnExit(true);
}
@@ -1438,7 +1438,7 @@
BrowserThread::IO, FROM_HERE,
base::Bind(&SaveSessionStateOnIOThread,
make_scoped_refptr(GetRequestContext()),
- make_scoped_refptr(BrowserContext::GetAppCacheService(this))));
+ BrowserContext::GetAppCacheService(this)));
}
void ProfileImpl::UpdateProfileUserNameCache() {

Powered by Google App Engine
This is Rietveld 408576698