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

Unified Diff: ios/web/public/browser_state.h

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 | « ios/web/browser_state.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/browser_state.h
diff --git a/ios/web/public/browser_state.h b/ios/web/public/browser_state.h
index 97f3da10a73c82d68e0f1bfbefe9616ed1834621..4154afda81cafa75820fbb6eaac1d7901e05c5bd 100644
--- a/ios/web/public/browser_state.h
+++ b/ios/web/public/browser_state.h
@@ -34,6 +34,10 @@ class BrowserState : public base::SupportsUserData {
static scoped_refptr<CertificatePolicyCache> GetCertificatePolicyCache(
BrowserState* browser_state);
+ // Returns whether |browser_state_| has an associated ActiveStateManager.
shreyasv1 2015/12/29 16:44:07 NIT: |browser_state|.
sdefresne 2015/12/29 16:58:06 Done.
+ // Must only be accessed from main thread.
+ static bool HasActiveStateManager(BrowserState* browser_state);
+
// Returns the ActiveStateManager associated with |browser_state.|
// Lazily creates one if an ActiveStateManager is not already associated with
// the |browser_state|. |browser_state| cannot be a nullptr. Must be accessed
« no previous file with comments | « ios/web/browser_state.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698