Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: chrome/browser/sessions/session_service_utils.cc

Issue 672083002: Refactoring of SessionService to get componentized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More shuffling Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
16
17 Browser::Type BrowserTypeForWindowType(SessionWindow::WindowType type) {
18 switch (type) {
19 case SessionWindow::TYPE_POPUP:
20 return Browser::TYPE_POPUP;
21 case SessionWindow::TYPE_TABBED:
22 return Browser::TYPE_TABBED;
23 }
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698