Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / ios / chrome / browser / browser_state / browser_state_otr_helper.cc
blobd8900e2336dd97faad1bad1f7f90505608f1e0ba
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) {
17 return browser_state;