diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-26 22:11:07 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-26 22:11:07 +0000 |
commit | c0e3ee43b5830d2110576631982c8f8dd7996bdb (patch) | |
tree | 1821b7c4a61a84aeaa6fd5685ae4b61c0f335bda /chrome/browser/tab_contents/navigation_controller_unittest.cc | |
parent | 6571a54916f7979f50abb153b69433653f153807 (diff) | |
download | chromium_src-c0e3ee43b5830d2110576631982c8f8dd7996bdb.zip chromium_src-c0e3ee43b5830d2110576631982c8f8dd7996bdb.tar.gz chromium_src-c0e3ee43b5830d2110576631982c8f8dd7996bdb.tar.bz2 |
Changes session restore so that if the last tab is closed explicitly
(control-w, middle click ...) the tab is not restored. OTOH if the
user closes the window, then the tab is restored.
BUG=4923
TEST=turn on session restore and close the last tab by clicking the
tab close button, it shouldn't be restored. Then close the last window
with one tab by way of alt-f4 (or clicking the window close button)
and make sure the tab is restored.
Review URL: http://codereview.chromium.org/2251002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48335 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/navigation_controller_unittest.cc')
-rw-r--r-- | chrome/browser/tab_contents/navigation_controller_unittest.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/navigation_controller_unittest.cc b/chrome/browser/tab_contents/navigation_controller_unittest.cc index e867b9c..4c572e6 100644 --- a/chrome/browser/tab_contents/navigation_controller_unittest.cc +++ b/chrome/browser/tab_contents/navigation_controller_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -105,7 +105,8 @@ class NavigationControllerHistoryTest : public NavigationControllerTest { void GetLastSession() { profile()->GetSessionService()->TabClosed(controller().window_id(), - controller().session_id()); + controller().session_id(), + false); ReopenDatabase(); Time close_time; |