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 "chrome/browser/sessions/session_service_utils.h"
7 const int gMaxPersistNavigationCount
= 6;
9 sessions::SessionWindow::WindowType
WindowTypeForBrowserType(
12 case Browser::TYPE_POPUP
:
13 return sessions::SessionWindow::TYPE_POPUP
;
14 case Browser::TYPE_TABBED
:
15 return sessions::SessionWindow::TYPE_TABBED
;
18 return sessions::SessionWindow::TYPE_TABBED
;
21 Browser::Type
BrowserTypeForWindowType(
22 sessions::SessionWindow::WindowType type
) {
24 case sessions::SessionWindow::TYPE_POPUP
:
25 return Browser::TYPE_POPUP
;
26 case sessions::SessionWindow::TYPE_TABBED
:
27 return Browser::TYPE_TABBED
;
30 return Browser::TYPE_TABBED
;