| 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/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" | 5 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" |
| 6 | 6 |
| 7 #include "ios/public/provider/web/web_state.h" | |
| 8 | |
| 9 namespace ios { | 7 namespace ios { |
| 10 | 8 |
| 11 // static | 9 // static |
| 12 ChromeBrowserState* ChromeBrowserState::FromBrowserState( | 10 ChromeBrowserState* ChromeBrowserState::FromBrowserState( |
| 13 web::BrowserState* browser_state) { | 11 web::BrowserState* browser_state) { |
| 14 // This is safe; this is the only implementation of BrowserState. | 12 // This is safe; this is the only implementation of BrowserState. |
| 15 return static_cast<ChromeBrowserState*>(browser_state); | 13 return static_cast<ChromeBrowserState*>(browser_state); |
| 16 } | 14 } |
| 17 | 15 |
| 18 } // namespace ios | 16 } // namespace ios |
| OLD | NEW |