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

Unified Diff: ui/views_content_client/views_content_client_main_parts_chromeos.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 | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc ('k') | ui/wm/test/wm_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views_content_client/views_content_client_main_parts_chromeos.cc
diff --git a/ui/views_content_client/views_content_client_main_parts_chromeos.cc b/ui/views_content_client/views_content_client_main_parts_chromeos.cc
index 9ee0e6909e1eef45be36e827b3b989df2398ab4c..4f3d56dfb7f46b57b8043dffb9ef7aa3cb44ad34 100644
--- a/ui/views_content_client/views_content_client_main_parts_chromeos.cc
+++ b/ui/views_content_client/views_content_client_main_parts_chromeos.cc
@@ -5,7 +5,6 @@
#include "base/macros.h"
#include "content/public/browser/context_factory.h"
#include "content/shell/browser/shell_browser_context.h"
-#include "ui/aura/test/test_screen.h"
#include "ui/aura/window.h"
#include "ui/display/screen.h"
#include "ui/views_content_client/views_content_client.h"
@@ -30,7 +29,6 @@ class ViewsContentClientMainPartsChromeOS
private:
// Enable a minimal set of views::corewm to be initialized.
- std::unique_ptr<display::Screen> test_screen_;
std::unique_ptr<::wm::WMTestHelper> wm_test_helper_;
DISALLOW_COPY_AND_ASSIGN(ViewsContentClientMainPartsChromeOS);
@@ -46,8 +44,6 @@ void ViewsContentClientMainPartsChromeOS::PreMainMessageLoopRun() {
ViewsContentClientMainPartsAura::PreMainMessageLoopRun();
gfx::Size host_size(800, 600);
- test_screen_.reset(aura::TestScreen::Create(host_size));
- display::Screen::SetScreenInstance(test_screen_.get());
// Set up basic pieces of views::corewm.
wm_test_helper_.reset(
new ::wm::WMTestHelper(host_size, content::GetContextFactory()));
@@ -61,7 +57,6 @@ void ViewsContentClientMainPartsChromeOS::PreMainMessageLoopRun() {
void ViewsContentClientMainPartsChromeOS::PostMainMessageLoopRun() {
wm_test_helper_.reset();
- test_screen_.reset();
ViewsContentClientMainPartsAura::PostMainMessageLoopRun();
}
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc ('k') | ui/wm/test/wm_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698