blob: cb36b4afa44c44b2be3c341e44d0622bb7e5e6b3 [file] [log] [blame]
// 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"
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;
}