Index: content/browser/child_process_launcher_browsertest.cc |
diff --git a/content/browser/child_process_launcher_browsertest.cc b/content/browser/child_process_launcher_browsertest.cc |
index 9ef655c6fc6ef22dd3bdb12d12e67f58135872d6..d85dc11fc99be8053e08ec87d67920bd38815ff9 100644 |
--- a/content/browser/child_process_launcher_browsertest.cc |
+++ b/content/browser/child_process_launcher_browsertest.cc |
@@ -65,17 +65,17 @@ IN_PROC_BROWSER_TEST_F(ChildProcessLauncherBrowserTest, ChildSpawnFail) { |
client->simulate_failure_ = true; |
nav_observer1.Wait(); |
delete client; |
- NavigationEntry* last_entry = |
- shell()->web_contents()->GetController().GetLastCommittedEntry(); |
// Make sure we didn't navigate. |
- CHECK(!last_entry); |
+ CHECK(shell()->web_contents()->GetController().IsInitialNavigation()); |
// Navigate again and let the process spawn correctly. |
TestNavigationObserver nav_observer2(window->web_contents(), 1); |
window->LoadURL(url); |
nav_observer2.Wait(); |
- last_entry = shell()->web_contents()->GetController().GetLastCommittedEntry(); |
+ NavigationEntry* last_entry = |
+ shell()->web_contents()->GetController().GetLastCommittedEntry(); |
// Make sure that we navigated to the proper URL. |
+ CHECK(!shell()->web_contents()->GetController().IsInitialNavigation()); |
CHECK(last_entry && last_entry->GetPageType() == PAGE_TYPE_NORMAL); |
CHECK(shell()->web_contents()->GetLastCommittedURL() == url); |