summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/browser_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/automation/browser_proxy.cc')
-rw-r--r--chrome/test/automation/browser_proxy.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/test/automation/browser_proxy.cc b/chrome/test/automation/browser_proxy.cc
index 1db1dd2..9030f32 100644
--- a/chrome/test/automation/browser_proxy.cc
+++ b/chrome/test/automation/browser_proxy.cc
@@ -167,6 +167,21 @@ bool BrowserProxy::GetType(Browser::Type* type) const {
return true;
}
+bool BrowserProxy::IsApplication(bool* is_application) {
+ DCHECK(is_application);
+
+ if (!is_valid())
+ return false;
+
+ bool success = false;
+ if (!sender_->Send(new AutomationMsg_IsBrowserInApplicationMode(
+ handle_, is_application, &success))) {
+ return false;
+ }
+
+ return success;
+}
+
bool BrowserProxy::ApplyAccelerator(int id) {
return RunCommandAsync(id);
}