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

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: Address comments 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') | ios/web/public/browser_state.h » ('J')
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..6d1eeeb734738bba0fa3fc3c42c89b9b18550325 100644
--- a/ios/web/browser_state.mm
+++ b/ios/web/browser_state.mm
@@ -52,6 +52,12 @@ scoped_refptr<CertificatePolicyCache> BrowserState::GetCertificatePolicyCache(
}
// static
+bool BrowserState::HasActiveStateManager(BrowserState* browser_state) {
+ DCHECK_CURRENTLY_ON_WEB_THREAD(WebThread::UI);
+ return browser_state->GetUserData(kActiveStateManagerKeyName) != nullptr;
+}
+
+// static
ActiveStateManager* BrowserState::GetActiveStateManager(
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') | ios/web/public/browser_state.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698