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

Unified Diff: chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc

Issue 1430023002: Enable AutoResize for Constrained Web Dialogs for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per erikchen@'s comments. Created 5 years, 1 month 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
Index: chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc b/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc
index 08fec2d4b92fdfa973cb25196af406f634300584..3d390e0b7c8e0f142e90edb07074d3e965dc7138 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc
@@ -25,7 +25,6 @@ using web_modal::WebContentsModalDialogManager;
namespace {
-#if !defined(OS_MACOSX)
static const char kTestDataURL[] = "data:text/html,<!doctype html>"
"<body></body>"
"<style>"
@@ -41,7 +40,6 @@ std::string GetChangeDimensionsScript(int dimension) {
return base::StringPrintf("window.document.body.style.width = %d + 'px';"
"window.document.body.style.height = %d + 'px';", dimension, dimension);
}
-#endif
class ConstrainedWebDialogBrowserTestObserver
: public content::WebContentsObserver {
@@ -135,7 +133,6 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWebDialogBrowserTest,
EXPECT_TRUE(observer.contents_destroyed());
}
-#if !defined(OS_MACOSX)
// Tests that dialog autoresizes based on web contents when autoresizing
// is enabled.
IN_PROC_BROWSER_TEST_F(ConstrainedWebDialogBrowserTest,
@@ -257,4 +254,3 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWebDialogBrowserTest,
initial_dialog_size,
dialog_delegate)));
}
-#endif // !OS_MACOSX

Powered by Google App Engine
This is Rietveld 408576698