Add ICU message format support
[chromium-blink-merge.git] / chrome / browser / sessions / session_service_utils.cc
blob25b54f0077431d8a6e97af5eaba88820795f903b
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(
10 Browser::Type type) {
11 switch (type) {
12 case Browser::TYPE_POPUP:
13 return sessions::SessionWindow::TYPE_POPUP;
14 case Browser::TYPE_TABBED:
15 return sessions::SessionWindow::TYPE_TABBED;
17 NOTREACHED();
18 return sessions::SessionWindow::TYPE_TABBED;
21 Browser::Type BrowserTypeForWindowType(
22 sessions::SessionWindow::WindowType type) {
23 switch (type) {
24 case sessions::SessionWindow::TYPE_POPUP:
25 return Browser::TYPE_POPUP;
26 case sessions::SessionWindow::TYPE_TABBED:
27 return Browser::TYPE_TABBED;
29 NOTREACHED();
30 return Browser::TYPE_TABBED;