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

Unified Diff: chrome/browser/ui/tab_contents/test_tab_contents.cc

Issue 10868072: Make TabContents ctor private; poke hole for existing callers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: all green Created 8 years, 4 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
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.cc ('k') | chrome/browser/ui/tabs/tab_strip_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tab_contents/test_tab_contents.cc
diff --git a/chrome/browser/ui/tab_contents/test_tab_contents.cc b/chrome/browser/ui/tab_contents/test_tab_contents.cc
index a28e1176a7a1fe13c547a7e1c880d93c923e4df9..7003faf6c1be787e6cba97702defda5b8f9fe8da 100644
--- a/chrome/browser/ui/tab_contents/test_tab_contents.cc
+++ b/chrome/browser/ui/tab_contents/test_tab_contents.cc
@@ -26,7 +26,8 @@ TabContents* TabContentsTestHarness::tab_contents() {
}
void TabContentsTestHarness::SetContents(WebContents* contents) {
- tab_contents_.reset(contents ? new TabContents(contents) : NULL);
+ tab_contents_.reset(
+ contents ? TabContents::Factory::CreateTabContents(contents) : NULL);
}
void TabContentsTestHarness::SetUp() {
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.cc ('k') | chrome/browser/ui/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698