| Index: chrome/test/automation/automation_proxy.cc
|
| ===================================================================
|
| --- chrome/test/automation/automation_proxy.cc (revision 18052)
|
| +++ chrome/test/automation/automation_proxy.cc (working copy)
|
| @@ -413,6 +413,20 @@
|
| return ProxyObjectFromHandle<BrowserProxy>(handle);
|
| }
|
|
|
| +bool AutomationProxy::GetBrowserLocale(string16* locale) {
|
| + DCHECK(locale != NULL);
|
| + if (!SendWithTimeout(new AutomationMsg_GetBrowserLocale(0, locale),
|
| + command_execution_timeout_ms(), NULL)) {
|
| + DLOG(ERROR) << "GetBrowserLocale did not complete in a timely fashion";
|
| + return false;
|
| + }
|
| +
|
| + // An empty locale means that the browser has no UI language
|
| + // which is impossible.
|
| + DCHECK(!locale->empty());
|
| + return !locale->empty();
|
| +}
|
| +
|
| scoped_refptr<BrowserProxy> AutomationProxy::FindNormalBrowserWindow() {
|
| int handle = 0;
|
|
|
|
|