summaryrefslogtreecommitdiffstats
path: root/ios/chrome/browser/browser_state/browser_state_otr_helper.cc
blob: d8900e2336dd97faad1bad1f7f90505608f1e0ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ios/chrome/browser/browser_state/browser_state_otr_helper.h"

#include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h"

web::BrowserState* GetBrowserStateRedirectedInIncognito(
    web::BrowserState* browser_state) {
  return static_cast<ios::ChromeBrowserState*>(browser_state)
      ->GetOriginalChromeBrowserState();
}

web::BrowserState* GetBrowserStateOwnInstanceInIncognito(
    web::BrowserState* browser_state) {
  return browser_state;
}