1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ios/chrome/browser/browser_state/browser_state_otr_helper.h"
7 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h"
9 web::BrowserState
* GetBrowserStateRedirectedInIncognito(
10 web::BrowserState
* browser_state
) {
11 return static_cast<ios::ChromeBrowserState
*>(browser_state
)
12 ->GetOriginalChromeBrowserState();
15 web::BrowserState
* GetBrowserStateOwnInstanceInIncognito(
16 web::BrowserState
* browser_state
) {