Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / apps / window_controls_browsertest.cc
index 7da2e46..172aa32 100644 (file)
@@ -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,