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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl_unittest.cc

Issue 2832503002: Fix double session-restore bug. (Closed)
Patch Set: Fix unittest. Created 3 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_impl.cc ('k') | chrome/common/chrome_switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/startup/startup_browser_creator_impl_unittest.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl_unittest.cc b/chrome/browser/ui/startup/startup_browser_creator_impl_unittest.cc
index 5424ca20bd2a101f7e9aa0cfe02f4a01ff4b3487..5ebc37be69760bdb04dc30b8e413cc34eead22e4 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl_unittest.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl_unittest.cc
@@ -253,12 +253,6 @@ TEST(StartupBrowserCreatorImplTest, DetermineBrowserOpenBehavior_PostCrash) {
Creator::BrowserOpenBehavior output = Creator::DetermineBrowserOpenBehavior(
pref_last, Creator::PROCESS_STARTUP | Creator::IS_POST_CRASH_LAUNCH);
EXPECT_EQ(Creator::BrowserOpenBehavior::NEW, output);
-
- // Exception: this can be overridden by passing a switch.
- output = Creator::DetermineBrowserOpenBehavior(
- pref_last, Creator::PROCESS_STARTUP | Creator::IS_POST_CRASH_LAUNCH |
- Creator::HAS_RESTORE_SWITCH);
- EXPECT_EQ(Creator::BrowserOpenBehavior::SYNCHRONOUS_RESTORE, output);
}
TEST(StartupBrowserCreatorImplTest, DetermineBrowserOpenBehavior_NotStartup) {
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_impl.cc ('k') | chrome/common/chrome_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698