summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/browser_proxy.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 17:20:06 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 17:20:06 +0000
commit170acd4d2ac0b54aa387cf1f8f046d1c096b02a8 (patch)
treedf69ed924758c9bd1185c6a5ebf59310eb33a13c /chrome/test/automation/browser_proxy.cc
parent1d799ddcfcf7925b8fb8aeb6070f33eb5c4e0826 (diff)
downloadchromium_src-170acd4d2ac0b54aa387cf1f8f046d1c096b02a8.zip
chromium_src-170acd4d2ac0b54aa387cf1f8f046d1c096b02a8.tar.gz
chromium_src-170acd4d2ac0b54aa387cf1f8f046d1c096b02a8.tar.bz2
Changes ui proxy classes to use Browser::Types rather than copying
them. BUG=none TEST=none Review URL: http://codereview.chromium.org/343018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/browser_proxy.cc')
-rw-r--r--chrome/test/automation/browser_proxy.cc20
1 files changed, 2 insertions, 18 deletions
diff --git a/chrome/test/automation/browser_proxy.cc b/chrome/test/automation/browser_proxy.cc
index ad6c8ff..fcbd4af 100644
--- a/chrome/test/automation/browser_proxy.cc
+++ b/chrome/test/automation/browser_proxy.cc
@@ -175,7 +175,7 @@ bool BrowserProxy::GetTabCountWithTimeout(int* num_tabs, uint32 timeout_ms,
return succeeded;
}
-bool BrowserProxy::GetType(Type* type) const {
+bool BrowserProxy::GetType(Browser::Type* type) const {
if (!is_valid())
return false;
@@ -188,23 +188,7 @@ bool BrowserProxy::GetType(Type* type) const {
bool succeeded = sender_->SendWithTimeout(new AutomationMsg_Type(
0, handle_, &type_as_int), base::kNoTimeout, NULL);
- switch (type_as_int) {
- case 0:
- *type = TYPE_NORMAL;
- break;
- case 1:
- *type = TYPE_POPUP;
- break;
- case 2:
- *type = TYPE_APP;
- break;
- case 3:
- *type = TYPE_APP_POPUP;
- break;
- default:
- return false;
- }
-
+ *type = static_cast<Browser::Type>(type_as_int);
return succeeded;
}