diff --git a/content/public/browser/browser_or_resource_context.h b/content/public/browser/browser_or_resource_context.h index 9cf4618ad7450..04a9d031cbc6f 100644 --- a/content/public/browser/browser_or_resource_context.h +++ b/content/public/browser/browser_or_resource_context.h @@ -50,7 +50,7 @@ class CONTENT_EXPORT BrowserOrResourceContext final { // TODO(dcheng): Change this to return a ref. BrowserContext* ToBrowserContext() const { DCHECK_CURRENTLY_ON(BrowserThread::UI); - return &absl::get>(storage_).get(); + return &*absl::get>(storage_); } // To be called only on the UI thread. Will CHECK() if `this` does not hold a @@ -58,7 +58,7 @@ class CONTENT_EXPORT BrowserOrResourceContext final { // TODO(dcheng): Change this to return a ref. ResourceContext* ToResourceContext() const { DCHECK_CURRENTLY_ON(BrowserThread::IO); - return &absl::get>(storage_).get(); + return &*absl::get>(storage_); } private: