summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sessions/session_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sessions/session_service.h')
-rw-r--r--chrome/browser/sessions/session_service.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/chrome/browser/sessions/session_service.h b/chrome/browser/sessions/session_service.h
index d105280..1541537 100644
--- a/chrome/browser/sessions/session_service.h
+++ b/chrome/browser/sessions/session_service.h
@@ -187,13 +187,10 @@ class SessionService : public BaseSessionService,
// These types mirror Browser::Type, but are re-defined here because these
// specific enumeration _values_ are written into the session database and
// are needed to maintain forward compatibility.
+ // Note that we only store browsers of type TYPE_TABBED and TYPE_POPUP.
enum WindowType {
- TYPE_NORMAL = 0,
- TYPE_POPUP = 1,
- TYPE_APP = 2,
- TYPE_APP_POPUP = TYPE_APP + TYPE_POPUP,
- TYPE_DEVTOOLS = TYPE_APP + 4,
- TYPE_APP_PANEL = TYPE_APP + 8
+ TYPE_TABBED = 0,
+ TYPE_POPUP = 1
};
void Init();
@@ -366,10 +363,7 @@ class SessionService : public BaseSessionService,
bool ShouldTrackChangesToWindow(const SessionID& window_id);
// Returns true if we track changes to the specified browser type.
- static bool should_track_changes_for_browser_type(Browser::Type type) {
- return type == Browser::TYPE_NORMAL ||
- (type == Browser::TYPE_POPUP && browser_defaults::kRestorePopups);
- }
+ static bool should_track_changes_for_browser_type(Browser::Type type);
// Returns true if we should record a window close as pending.
// |has_open_trackable_browsers_| must be up-to-date before calling this.