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

Unified Diff: chrome/browser/tab_contents/view_source_browsertest.cc

Issue 10535088: TabContentsWrapper -> TabContents, part 30. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
Index: chrome/browser/tab_contents/view_source_browsertest.cc
diff --git a/chrome/browser/tab_contents/view_source_browsertest.cc b/chrome/browser/tab_contents/view_source_browsertest.cc
index 215ca9a916f7bf55241ef381a22a1a7c59a1d449..85299d252c788eb860446498c015151215c005eb 100644
--- a/chrome/browser/tab_contents/view_source_browsertest.cc
+++ b/chrome/browser/tab_contents/view_source_browsertest.cc
@@ -33,7 +33,7 @@ IN_PROC_BROWSER_TEST_F(ViewSourceTest, DoesBrowserRenderInViewSource) {
// Check that the title didn't get set. It should not be there (because we
// are in view-source mode).
EXPECT_NE(ASCIIToUTF16("foo"),
- browser()->GetSelectedWebContents()->GetTitle());
+ browser()->GetActiveWebContents()->GetTitle());
}
// This test renders a page normally and then renders the same page in
@@ -54,7 +54,7 @@ IN_PROC_BROWSER_TEST_F(ViewSourceTest, DoesBrowserConsumeViewSourcePrefix) {
// The URL should still be prefixed with "view-source:".
EXPECT_EQ(url_viewsource.spec(),
- browser()->GetSelectedWebContents()->GetURL().spec());
+ browser()->GetActiveWebContents()->GetURL().spec());
}
// Make sure that when looking at the actual page, we can select "View Source"
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_ssl_helper.cc ('k') | chrome/browser/tab_contents/web_drag_bookmark_handler_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698