Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4693)

Unified Diff: chrome/test/automation/automation_proxy.cc

Issue 118441: Fixed 3 tests that failed in hebrew enabled vista... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/automation/automation_proxy.h ('k') | chrome/test/automation/automation_proxy_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chrome/test/automation/automation_proxy.h ('k') | chrome/test/automation/automation_proxy_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698