Commit a75aad30 authored by Xiyuan Xia's avatar Xiyuan Xia Committed by Commit Bot

Fix ash_ui_perftests compile

Fix ash_ui_perftests compile after https://crrev.com/c/1775390

Bug: 973483
Change-Id: Iaebaa8ffe341080f01f28a5e399cd0a4ebf7e673
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1795488Reviewed-by: default avatarMatthew Mourgos <mmourgos@chromium.org>
Commit-Queue: Xiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695293}
parent c68731aa
......@@ -6,6 +6,7 @@
#include <utility>
#include "ash/public/cpp/shelf_config.h"
#include "ash/shell.h"
#include "ash/shell/content/client/shell_browser_main_parts.h"
#include "ash/shell/content/embedded_browser.h"
......@@ -146,8 +147,8 @@ void AshContentTest::SetUpOnMainThread() {
GetUMAHistogramNames());
}
gfx::Size display_size = ash::Shell::GetPrimaryRootWindow()->bounds().size();
test_window_size_.set_height((display_size.height() - ash::kShelfSize) *
0.95f);
test_window_size_.set_height(
(display_size.height() - ash::ShelfConfig::Get()->shelf_size()) * 0.95f);
test_window_size_.set_width(display_size.width() * 0.7f);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment