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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc

Issue 8956050: Rename TabContents::controller() to GetController and put it into the WebContents interface. (Closed) Base URL: svn://chrome-svn/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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc (revision 115228)
+++ chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc (working copy)
@@ -115,9 +115,9 @@
}
void GoBack(bool is_cross_site) {
- NavigationEntry* entry = contents()->controller().GetEntryAtOffset(-1);
+ NavigationEntry* entry = contents()->GetController().GetEntryAtOffset(-1);
ASSERT_TRUE(entry);
- contents()->controller().GoBack();
+ contents()->GetController().GoBack();
// The pending RVH should commit for cross-site navigations.
RenderViewHost* rvh = is_cross_site ?
@@ -493,7 +493,7 @@
EXPECT_EQ(kGoodURL, controller().GetActiveEntry()->url().spec());
// Navigate forward to the malware URL.
- contents()->controller().GoForward();
+ contents()->GetController().GoForward();
ShowInterstitial(false, kBadURL);
sb_interstitial = GetSafeBrowsingBlockingPage();
ASSERT_TRUE(sb_interstitial);

Powered by Google App Engine
This is Rietveld 408576698