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

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

Issue 10535120: TabContentsWrapper -> TabContents, part 43. (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/ui/tab_contents/tab_contents.cc
diff --git a/chrome/browser/ui/tab_contents/tab_contents.cc b/chrome/browser/ui/tab_contents/tab_contents.cc
index 8f0f0dbf4245eb70ce3feea1d2ac77851e7ad667..b6dc733629cde661fb8bd44a103b1cc87e63427e 100644
--- a/chrome/browser/ui/tab_contents/tab_contents.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents.cc
@@ -73,7 +73,7 @@ TabContents::TabContents(WebContents* contents)
in_destructor_(false),
web_contents_(contents) {
DCHECK(contents);
- DCHECK(!GetOwningTabContentsForWebContents(contents));
+ DCHECK(!FromWebContents(contents));
chrome::SetViewType(contents, chrome::VIEW_TYPE_TAB_CONTENTS);
@@ -220,18 +220,6 @@ const TabContents* TabContents::GetCurrentWrapperForContents(
return FromWebContents(contents);
}
-// static deprecated
-TabContents* TabContents::GetOwningTabContentsForWebContents(
- WebContents* contents) {
- return FromWebContents(contents);
-}
-
-// static deprecated
-const TabContents* TabContents::GetOwningTabContentsForWebContents(
- const WebContents* contents) {
- return FromWebContents(contents);
-}
-
// static
TabContents* TabContents::FromWebContents(WebContents* contents) {
TabContents** tab_contents =
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.h ('k') | chrome/browser/ui/views/location_bar/content_setting_image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698