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