// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sessions/session_service_utils.h" const int gMaxPersistNavigationCount = 6; sessions::SessionWindow::WindowType WindowTypeForBrowserType( Browser::Type type) { switch (type) { case Browser::TYPE_POPUP: return sessions::SessionWindow::TYPE_POPUP; case Browser::TYPE_TABBED: return sessions::SessionWindow::TYPE_TABBED; } NOTREACHED(); return sessions::SessionWindow::TYPE_TABBED; } Browser::Type BrowserTypeForWindowType( sessions::SessionWindow::WindowType type) { switch (type) { case sessions::SessionWindow::TYPE_POPUP: return Browser::TYPE_POPUP; case sessions::SessionWindow::TYPE_TABBED: return Browser::TYPE_TABBED; } NOTREACHED(); return Browser::TYPE_TABBED; }