summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-18 18:50:24 +0000
committerachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-18 18:50:24 +0000
commit9b859415ca1efc09cc339502b2f93f78e8765e83 (patch)
tree1c7942d41fec81c623f8c68d8f2c5bf6e97e39a0 /tools
parent54b09939492d775363209a4bde76f5f16359eafc (diff)
downloadchromium_src-9b859415ca1efc09cc339502b2f93f78e8765e83.zip
chromium_src-9b859415ca1efc09cc339502b2f93f78e8765e83.tar.gz
chromium_src-9b859415ca1efc09cc339502b2f93f78e8765e83.tar.bz2
Revert 193811 "Move browser and url to WebContents from Tab."
Reverting because url uses BrowserBackend.tab_list_backend, which is not correct for WebContents. > Move browser and url to WebContents from Tab. > > BUG=None > TEST=unit tests > NOTRY=true > > Review URL: https://chromiumcodereview.appspot.com/14185002 Review URL: https://codereview.chromium.org/14064014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r--tools/telemetry/telemetry/core/tab.py9
-rw-r--r--tools/telemetry/telemetry/core/web_contents.py9
2 files changed, 9 insertions, 9 deletions
diff --git a/tools/telemetry/telemetry/core/tab.py b/tools/telemetry/telemetry/core/tab.py
index 290579c..d684ba6 100644
--- a/tools/telemetry/telemetry/core/tab.py
+++ b/tools/telemetry/telemetry/core/tab.py
@@ -23,6 +23,15 @@ class Tab(web_contents.WebContents):
super(Tab, self).__del__()
@property
+ def browser(self):
+ """The browser in which this tab resides."""
+ return self._inspector_backend.browser
+
+ @property
+ def url(self):
+ return self._inspector_backend.url
+
+ @property
def dom_stats(self):
"""A dictionary populated with measured DOM statistics.
diff --git a/tools/telemetry/telemetry/core/web_contents.py b/tools/telemetry/telemetry/core/web_contents.py
index 6aa98e0..837c084 100644
--- a/tools/telemetry/telemetry/core/web_contents.py
+++ b/tools/telemetry/telemetry/core/web_contents.py
@@ -24,15 +24,6 @@ class WebContents(object):
Be sure to check browser.supports_tab_control."""
self._inspector_backend.Close()
- @property
- def browser(self):
- """The browser in which this WebContents resides."""
- return self._inspector_backend.browser
-
- @property
- def url(self):
- return self._inspector_backend.url
-
def WaitForDocumentReadyStateToBeComplete(self,
timeout=DEFAULT_WEB_CONTENTS_TIMEOUT):
self._inspector_backend.WaitForDocumentReadyStateToBeComplete(timeout)