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

Unified Diff: ui/aura/demo/demo_main.cc

Issue 2207043002: SetDeviceScaleFactorForTest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetDeviceScaleFactorForTest Created 4 years, 4 months 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
« no previous file with comments | « content/shell/browser/shell_views.cc ('k') | ui/aura/test/aura_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/demo/demo_main.cc
diff --git a/ui/aura/demo/demo_main.cc b/ui/aura/demo/demo_main.cc
index 8f52346cb533e67c166ac3092407bc1448781288..49e212193de0399aa97a7fd6c90e9dd07fcfd0d7 100644
--- a/ui/aura/demo/demo_main.cc
+++ b/ui/aura/demo/demo_main.cc
@@ -153,8 +153,8 @@ int DemoMain() {
std::unique_ptr<aura::TestScreen> test_screen(
aura::TestScreen::Create(gfx::Size()));
display::Screen::SetScreenInstance(test_screen.get());
- std::unique_ptr<aura::WindowTreeHost> host(
- test_screen->CreateHostForPrimaryDisplay());
+ test_screen->CreateHostForPrimaryDisplay();
+ aura::WindowTreeHost* host = test_screen->host();
std::unique_ptr<DemoWindowTreeClient> window_tree_client(
new DemoWindowTreeClient(host->window()));
aura::test::TestFocusClient focus_client;
« no previous file with comments | « content/shell/browser/shell_views.cc ('k') | ui/aura/test/aura_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698