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

Side by Side Diff: chrome/test/base/view_event_test_platform_part_chromeos.cc

Issue 2761373002: Move yet more from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/base/view_event_test_platform_part.h" 5 #include "chrome/test/base/view_event_test_platform_part.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "ash/common/test/test_session_controller_client.h" 9 #include "ash/common/test/test_session_controller_client.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 new ash::test::TestShellDelegate(); 65 new ash::test::TestShellDelegate();
66 ash::ShellInitParams init_params; 66 ash::ShellInitParams init_params;
67 init_params.delegate = shell_delegate; 67 init_params.delegate = shell_delegate;
68 init_params.context_factory = context_factory; 68 init_params.context_factory = context_factory;
69 init_params.context_factory_private = context_factory_private; 69 init_params.context_factory_private = context_factory_private;
70 init_params.blocking_pool = content::BrowserThread::GetBlockingPool(); 70 init_params.blocking_pool = content::BrowserThread::GetBlockingPool();
71 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( 71 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
72 switches::kHostWindowBounds, "0+0-1280x800"); 72 switches::kHostWindowBounds, "0+0-1280x800");
73 ash::Shell::CreateInstance(init_params); 73 ash::Shell::CreateInstance(init_params);
74 ash::test::TestSessionControllerClient session_controller_client( 74 ash::test::TestSessionControllerClient session_controller_client(
75 ash::WmShell::Get()->session_controller()); 75 ash::Shell::Get()->session_controller());
76 session_controller_client.CreatePredefinedUserSessions(1); 76 session_controller_client.CreatePredefinedUserSessions(1);
77 GetContext()->GetHost()->Show(); 77 GetContext()->GetHost()->Show();
78 } 78 }
79 79
80 ViewEventTestPlatformPartChromeOS::~ViewEventTestPlatformPartChromeOS() { 80 ViewEventTestPlatformPartChromeOS::~ViewEventTestPlatformPartChromeOS() {
81 ash::Shell::DeleteInstance(); 81 ash::Shell::DeleteInstance();
82 env_.reset(); 82 env_.reset();
83 83
84 chromeos::NetworkHandler::Shutdown(); 84 chromeos::NetworkHandler::Shutdown();
85 chromeos::CrasAudioHandler::Shutdown(); 85 chromeos::CrasAudioHandler::Shutdown();
86 bluez::BluezDBusManager::Shutdown(); 86 bluez::BluezDBusManager::Shutdown();
87 chromeos::DBusThreadManager::Shutdown(); 87 chromeos::DBusThreadManager::Shutdown();
88 // Ash Shell can't just live on its own without a browser process, we need to 88 // Ash Shell can't just live on its own without a browser process, we need to
89 // also shut down the message center. 89 // also shut down the message center.
90 message_center::MessageCenter::Shutdown(); 90 message_center::MessageCenter::Shutdown();
91 } 91 }
92 92
93 } // namespace 93 } // namespace
94 94
95 // static 95 // static
96 ViewEventTestPlatformPart* ViewEventTestPlatformPart::Create( 96 ViewEventTestPlatformPart* ViewEventTestPlatformPart::Create(
97 ui::ContextFactory* context_factory, 97 ui::ContextFactory* context_factory,
98 ui::ContextFactoryPrivate* context_factory_private) { 98 ui::ContextFactoryPrivate* context_factory_private) {
99 return new ViewEventTestPlatformPartChromeOS(context_factory, 99 return new ViewEventTestPlatformPartChromeOS(context_factory,
100 context_factory_private); 100 context_factory_private);
101 } 101 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698