summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/tab_proxy.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 16:56:38 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 16:56:38 +0000
commit0c9ee9904acbfe0766f488edb207ff232635efd3 (patch)
tree5118e9af778ed35f8a68490171a75676ce202c4d /chrome/test/automation/tab_proxy.cc
parentbbf87943104ec3343bd93152500fdb0bf81ee563 (diff)
downloadchromium_src-0c9ee9904acbfe0766f488edb207ff232635efd3.zip
chromium_src-0c9ee9904acbfe0766f488edb207ff232635efd3.tar.gz
chromium_src-0c9ee9904acbfe0766f488edb207ff232635efd3.tar.bz2
Revert "This is the first of probably several patches trying to clean up the BlockedPopupContainer
into something that can be cross-platform." This reverts commit 0247f4d628f8f56c0a42ab44efd1d29058167a11 (r17483). Review URL: http://codereview.chromium.org/118166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17485 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/tab_proxy.cc')
-rw-r--r--chrome/test/automation/tab_proxy.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc
index 55d0dc4..207efac 100644
--- a/chrome/test/automation/tab_proxy.cc
+++ b/chrome/test/automation/tab_proxy.cc
@@ -377,33 +377,6 @@ bool TabProxy::WaitForChildWindowCountToChange(int count, int* new_count,
return false;
}
-bool TabProxy::GetBlockedPopupCount(int* count) const {
- if (!is_valid())
- return false;
-
- if (!count) {
- NOTREACHED();
- return false;
- }
-
- return sender_->Send(new AutomationMsg_BlockedPopupCount(
- 0, handle_, count));
-}
-
-bool TabProxy::WaitForBlockedPopupCountToChangeTo(int target_count,
- int wait_timeout) {
- int intervals = std::min(wait_timeout/automation::kSleepTime, 1);
- for (int i = 0; i < intervals; ++i) {
- PlatformThread::Sleep(automation::kSleepTime);
- int new_count = -1;
- bool succeeded = GetBlockedPopupCount(&new_count);
- if (!succeeded) return false;
- if (target_count == new_count) return true;
- }
- // Constrained Window count did not change, return false.
- return false;
-}
-
bool TabProxy::GetCookies(const GURL& url, std::string* cookies) {
if (!is_valid())
return false;