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

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

Issue 10540064: Shorter name. (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
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7c2326a004ae5a909441f8a5babb369f8b1fc10b..c4bf323eb225e95b57b3939db1ba88882a85f41f 100644
--- a/chrome/browser/ui/tab_contents/tab_contents.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents.cc
@@ -208,18 +208,29 @@ TabContents* TabContents::Clone() {
// static deprecated
TabContents* TabContents::GetCurrentWrapperForContents(
WebContents* contents) {
- return GetOwningTabContentsForWebContents(contents);
+ return FromWebContents(contents);
}
// static deprecated
const TabContents* TabContents::GetCurrentWrapperForContents(
const WebContents* contents) {
- return GetOwningTabContentsForWebContents(contents);
+ return FromWebContents(contents);
}
-// static
+// 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 =
property_accessor()->GetProperty(contents->GetPropertyBag());
@@ -227,8 +238,7 @@ TabContents* TabContents::GetOwningTabContentsForWebContents(
}
// static
-const TabContents* TabContents::GetOwningTabContentsForWebContents(
- const WebContents* contents) {
+const TabContents* TabContents::FromWebContents(const WebContents* contents) {
TabContents* const* tab_contents =
property_accessor()->GetProperty(contents->GetPropertyBag());
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698