summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_restore_service.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-19 02:27:16 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-19 02:27:16 +0000
commit299dabdd2178ac3126282ac854da86b6cd84be02 (patch)
tree4626d596651704ec7b467d60c011da7efe18dcda /chrome/browser/tab_restore_service.cc
parent2758136c0f073eacbb2943d5029b90eb4b1e5512 (diff)
downloadchromium_src-299dabdd2178ac3126282ac854da86b6cd84be02.zip
chromium_src-299dabdd2178ac3126282ac854da86b6cd84be02.tar.gz
chromium_src-299dabdd2178ac3126282ac854da86b6cd84be02.tar.bz2
Land this change again now I've fixed the crash.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_restore_service.cc')
-rw-r--r--chrome/browser/tab_restore_service.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/tab_restore_service.cc b/chrome/browser/tab_restore_service.cc
index e815a62..4fcbe8c 100644
--- a/chrome/browser/tab_restore_service.cc
+++ b/chrome/browser/tab_restore_service.cc
@@ -112,7 +112,7 @@ void TabRestoreService::AddHistoricalTabs(
// First pass, extract the selected tabs in each window.
for (size_t i = 0; i < windows->size(); ++i) {
SessionWindow* window = (*windows)[i];
- if (window->type == BrowserType::TABBED_BROWSER) {
+ if (window->type == Browser::TYPE_NORMAL) {
DCHECK(window->selected_tab_index >= 0 &&
window->selected_tab_index <
static_cast<int>(window->tabs.size()));
@@ -127,7 +127,7 @@ void TabRestoreService::AddHistoricalTabs(
for (size_t window_index = 0; window_index < windows->size();
++window_index) {
SessionWindow* window = (*windows)[window_index];
- if (window->type != BrowserType::TABBED_BROWSER)
+ if (window->type != Browser::TYPE_NORMAL)
continue; // Ignore popups.
for (size_t tab_index = 0; tab_index < window->tabs.size(); ++tab_index) {