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

Side by Side Diff: chrome/browser/extensions/app_process_apitest.cc

Issue 8879051: Revert 113785 - Enable TransferNavigationResourceHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/extensions/extension_host.h" 7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/process_map.h" 9 #include "chrome/browser/extensions/process_map.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // 3. Renderer issues the meta refresh to navigate to server-redirect. 354 // 3. Renderer issues the meta refresh to navigate to server-redirect.
355 // 4. Renderer is now in a "provisional load", waiting for navigation to 355 // 4. Renderer is now in a "provisional load", waiting for navigation to
356 // complete. 356 // complete.
357 // 5. Browser sees a redirect response from server-redirect to empty.html, and 357 // 5. Browser sees a redirect response from server-redirect to empty.html, and
358 // transfers that to a new navigation, using RequestTransferURL. 358 // transfers that to a new navigation, using RequestTransferURL.
359 // 6. We navigate to empty.html. 359 // 6. We navigate to empty.html.
360 // 7. Renderer is still in a provisional load to server-redirect, so that is 360 // 7. Renderer is still in a provisional load to server-redirect, so that is
361 // cancelled, and counts as a load stop 361 // cancelled, and counts as a load stop
362 // 8. Renderer navigates to empty.html, and finishes loading, counting as the 362 // 8. Renderer navigates to empty.html, and finishes loading, counting as the
363 // third load stop 363 // third load stop
364 #if defined(TRANSFER_REDIRECTS_BUG79520)
364 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete( 365 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(
365 browser(), base_url.Resolve("path1/redirect.html"), 3); 366 browser(), base_url.Resolve("path1/redirect.html"), 3);
367 #else
368 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(
369 browser(), base_url.Resolve("path1/redirect.html"), 2);
370 #endif
366 371
367 // 3 tabs, including the initial about:blank. The last 2 should be the same 372 // 3 tabs, including the initial about:blank. The last 2 should be the same
368 // process. 373 // process.
369 ASSERT_EQ(3, browser()->tab_count()); 374 ASSERT_EQ(3, browser()->tab_count());
370 EXPECT_EQ("/files/extensions/api_test/app_process/path1/empty.html", 375 EXPECT_EQ("/files/extensions/api_test/app_process/path1/empty.html",
371 browser()->GetTabContentsAt(2)->controller(). 376 browser()->GetTabContentsAt(2)->controller().
372 GetLastCommittedEntry()->url().path()); 377 GetLastCommittedEntry()->url().path());
373 EXPECT_EQ(browser()->GetTabContentsAt(1)->render_view_host()->process(), 378 EXPECT_EQ(browser()->GetTabContentsAt(1)->render_view_host()->process(),
374 browser()->GetTabContentsAt(2)->render_view_host()->process()); 379 browser()->GetTabContentsAt(2)->render_view_host()->process());
375 } 380 }
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 content::Source<NavigationController>( 606 content::Source<NavigationController>(
602 &browser()->GetSelectedTabContentsWrapper()->controller())); 607 &browser()->GetSelectedTabContentsWrapper()->controller()));
603 browser()->Reload(CURRENT_TAB); 608 browser()->Reload(CURRENT_TAB);
604 observer.Wait(); 609 observer.Wait();
605 ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool( 610 ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool(
606 contents->render_view_host(), L"", 611 contents->render_view_host(), L"",
607 L"window.domAutomationController.send(chrome.app.isInstalled)", 612 L"window.domAutomationController.send(chrome.app.isInstalled)",
608 &is_installed)); 613 &is_installed));
609 ASSERT_TRUE(is_installed); 614 ASSERT_TRUE(is_installed);
610 } 615 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698