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

Unified Diff: ash/root_window_controller.cc

Issue 2815043002: Removes ShellPort::IsRunningInMash() (Closed)
Patch Set: dont set instance_ in constructor Created 3 years, 8 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 | « ash/mus/bridge/shell_port_mash.cc ('k') | ash/root_window_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index c7dbc44377a98048d8ca4e37db8e22b55d738d34..38906af6341041e7236662185abd0d6143f5f680 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -269,7 +269,7 @@ bool ShouldDestroyWindowInCloseChildWindows(WmWindow* window) {
if (!WmWindow::GetAuraWindow(window)->owned_by_parent())
return false;
- if (!ShellPort::Get()->IsRunningInMash())
+ if (Shell::GetAshConfig() != Config::MASH)
return true;
aura::WindowMus* window_mus =
@@ -626,7 +626,7 @@ void RootWindowController::UpdateShelfVisibility() {
}
void RootWindowController::InitTouchHuds() {
- if (ShellPort::Get()->IsRunningInMash())
+ if (Shell::GetAshConfig() == Config::MASH)
return;
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
@@ -771,7 +771,7 @@ void RootWindowController::Init(RootWindowType root_window_type) {
root_window_layout_manager_->OnWindowResized();
if (root_window_type == RootWindowType::PRIMARY) {
- if (!shell_port->IsRunningInMash())
+ if (Shell::GetAshConfig() != Config::MASH)
shell->InitKeyboard();
} else {
window_tree_host_->Show();
@@ -788,7 +788,7 @@ void RootWindowController::Init(RootWindowType root_window_type) {
// http://crbug.com/679782
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kAshDisableTouchExplorationMode) &&
- !shell_port->IsRunningInMash()) {
+ Shell::GetAshConfig() != Config::MASH) {
touch_exploration_manager_.reset(new AshTouchExplorationManager(this));
}
}
« no previous file with comments | « ash/mus/bridge/shell_port_mash.cc ('k') | ash/root_window_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698