Index: chrome/browser/automation/ui_controls_linux.cc |
diff --git a/chrome/browser/automation/ui_controls_linux.cc b/chrome/browser/automation/ui_controls_linux.cc |
index 9c80f59f40cf87907bf557aceac3addf585aff53..01512feebeb641ecd1102452ea891947df72659a 100644 |
--- a/chrome/browser/automation/ui_controls_linux.cc |
+++ b/chrome/browser/automation/ui_controls_linux.cc |
@@ -247,7 +247,7 @@ bool SendMouseClick(MouseButton type) { |
#if defined(TOOLKIT_VIEWS) |
-#if defined(OS_LINUX) |
+#if defined(OS_LINUX) && !defined(USE_AURA) |
void OnConfigure(GtkWidget* gtk_widget, GdkEvent* event, gpointer data) { |
views::Widget* widget = static_cast<views::Widget*>(data); |
gfx::Rect actual = widget->GetWindowScreenBounds(); |
@@ -275,7 +275,7 @@ void SynchronizeWidgetSize(views::Widget* widget) { |
void MoveMouseToCenterAndPress(views::View* view, MouseButton button, |
int state, Task* task) { |
-#if defined(OS_LINUX) |
+#if defined(OS_LINUX) && !defined(USE_AURA) |
// X is asynchronous and we need to wait until the window gets |
// resized to desired size. |
SynchronizeWidgetSize(view->GetWidget()); |