diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-24 15:36:57 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-24 15:36:57 +0000 |
commit | 366d01d8fc1b7e05795fb4525ef1d627baee1c3c (patch) | |
tree | b1599a87630a4e2ab2dcda5586490c50ab758402 /chrome/test/automation/tab_proxy.cc | |
parent | 46cc0a4dd4ddd93336e83dbbf19da94c45c339a3 (diff) | |
download | chromium_src-366d01d8fc1b7e05795fb4525ef1d627baee1c3c.zip chromium_src-366d01d8fc1b7e05795fb4525ef1d627baee1c3c.tar.gz chromium_src-366d01d8fc1b7e05795fb4525ef1d627baee1c3c.tar.bz2 |
Simplify how LayoutBrowserTest scraps a tab. This allows removal of a whole bunch of ancient code.
BUG=90448
Review URL: https://chromiumcodereview.appspot.com/10800090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/tab_proxy.cc')
-rw-r--r-- | chrome/test/automation/tab_proxy.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc index 1e28f7e..e8a063a 100644 --- a/chrome/test/automation/tab_proxy.cc +++ b/chrome/test/automation/tab_proxy.cc @@ -247,16 +247,6 @@ Value* TabProxy::ExecuteAndExtractValue(const std::wstring& frame_xpath, return deserializer.Deserialize(NULL, NULL); } -DOMElementProxyRef TabProxy::GetDOMDocument() { - if (!is_valid()) - return NULL; - - int element_handle; - if (!ExecuteJavaScriptAndGetReturn("document", &element_handle)) - return NULL; - return GetObjectProxy<DOMElementProxy>(element_handle); -} - bool TabProxy::GetCookies(const GURL& url, std::string* cookies) { if (!is_valid()) return false; @@ -547,19 +537,6 @@ void TabProxy::OnChannelError() { TabProxy::~TabProxy() {} -bool TabProxy::ExecuteJavaScriptAndGetJSON(const std::string& script, - std::string* json) { - if (!is_valid()) - return false; - if (!json) { - NOTREACHED(); - return false; - } - return sender_->Send(new AutomationMsg_DomOperation(handle_, L"", - UTF8ToWide(script), - json)); -} - void TabProxy::FirstObjectAdded() { AddRef(); } |