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

Unified Diff: content/browser/tab_contents/test_tab_contents.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
« no previous file with comments | « content/browser/tab_contents/tab_contents_unittest.cc ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/test_tab_contents.cc
===================================================================
--- content/browser/tab_contents/test_tab_contents.cc (revision 115228)
+++ content/browser/tab_contents/test_tab_contents.cc (working copy)
@@ -82,12 +82,12 @@
TabContents* TestTabContents::Clone() {
TabContents* tc = new TestTabContents(
browser_context(), SiteInstance::CreateSiteInstance(browser_context()));
- tc->controller().CopyStateFrom(controller_);
+ tc->GetController().CopyStateFrom(controller_);
return tc;
}
void TestTabContents::NavigateAndCommit(const GURL& url) {
- controller().LoadURL(
+ GetController().LoadURL(
url, content::Referrer(), content::PAGE_TRANSITION_LINK, std::string());
GURL loaded_url(url);
bool reverse_on_redirect = false;
@@ -109,7 +109,7 @@
if (!rvh)
rvh = static_cast<TestRenderViewHost*>(old_rvh);
- const NavigationEntry* entry = controller().pending_entry();
+ const NavigationEntry* entry = GetController().pending_entry();
DCHECK(entry);
int page_id = entry->page_id();
if (page_id == -1) {
« no previous file with comments | « content/browser/tab_contents/tab_contents_unittest.cc ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698