OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "chrome/browser/sessions/session_service_utils.h" |
| 6 |
| 7 SessionWindow::WindowType WindowTypeForBrowserType(Browser::Type type) { |
| 8 switch (type) { |
| 9 case Browser::TYPE_POPUP: |
| 10 return SessionWindow::TYPE_POPUP; |
| 11 case Browser::TYPE_TABBED: |
| 12 return SessionWindow::TYPE_TABBED; |
| 13 } |
| 14 NOTREACHED(); |
| 15 return SessionWindow::TYPE_TABBED; |
| 16 } |
| 17 |
| 18 Browser::Type BrowserTypeForWindowType(SessionWindow::WindowType type) { |
| 19 switch (type) { |
| 20 case SessionWindow::TYPE_POPUP: |
| 21 return Browser::TYPE_POPUP; |
| 22 case SessionWindow::TYPE_TABBED: |
| 23 return Browser::TYPE_TABBED; |
| 24 } |
| 25 NOTREACHED(); |
| 26 return Browser::TYPE_TABBED; |
| 27 } |
OLD | NEW |