summaryrefslogtreecommitdiffstats
path: root/chrome/browser/apps/window_controls_browsertest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/apps/window_controls_browsertest.cc')
-rw-r--r--chrome/browser/apps/window_controls_browsertest.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/apps/window_controls_browsertest.cc b/chrome/browser/apps/window_controls_browsertest.cc
index 7da2e46..172aa32 100644
--- a/chrome/browser/apps/window_controls_browsertest.cc
+++ b/chrome/browser/apps/window_controls_browsertest.cc
@@ -6,7 +6,6 @@
#include "chrome/browser/extensions/extension_test_message_listener.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_switches.h"
-#include "content/public/browser/web_contents_view.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/browser/process_manager.h"
@@ -69,7 +68,7 @@ IN_PROC_BROWSER_TEST_F(WindowControlsTest, CloseControlWorks) {
// Send mouse click somewhere inside the [x] button
const int controlOffset = 25;
- int x = web_contents->GetView()->GetContainerSize().width() - controlOffset;
+ int x = web_contents->GetContainerBounds().size().width() - controlOffset;
int y = controlOffset;
content::SimulateMouseClickAt(web_contents,
0,