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

Unified Diff: ios/web/browser_state.mm

Issue 1547393002: [iOS] Add a HasActiveStateManager method to BrowserState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DCHECK that the thread is correct Created 5 years 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
« no previous file with comments | « no previous file | ios/web/public/browser_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/browser_state.mm
diff --git a/ios/web/browser_state.mm b/ios/web/browser_state.mm
index 510140d2f898b86b8be01ab9ef38d4d572da88d1..2b23c96b34ef28cf135ec04571e9a327bb4a2253 100644
--- a/ios/web/browser_state.mm
+++ b/ios/web/browser_state.mm
@@ -34,6 +34,12 @@ struct CertificatePolicyCacheHandle : public base::SupportsUserData::Data {
}
// static
+bool BrowserState::HasActiveStateManager(BrowserState* browser_state) {
shreyasv1 2015/12/29 16:09:48 OPTIONAL: Move this closer to |GetActiveStateManag
sdefresne 2015/12/29 16:14:59 Done.
+ DCHECK_CURRENTLY_ON_WEB_THREAD(WebThread::UI);
+ return browser_state->GetUserData(kCertificatePolicyCacheKeyName) != nullptr;
shreyasv1 2015/12/29 16:09:48 Wrong key.
sdefresne 2015/12/29 16:14:59 Oooops.
+}
+
+// static
scoped_refptr<CertificatePolicyCache> BrowserState::GetCertificatePolicyCache(
BrowserState* browser_state) {
DCHECK_CURRENTLY_ON_WEB_THREAD(WebThread::UI);
« no previous file with comments | « no previous file | ios/web/public/browser_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698