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

Side by Side Diff: chrome/browser/chromeos/arc/boot_phase_monitor/arc_instance_throttle.cc

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/browser/chromeos/arc/boot_phase_monitor/arc_instance_throttle.h " 5 #include "chrome/browser/chromeos/arc/boot_phase_monitor/arc_instance_throttle.h "
6 6
7 #include "ash/common/wm_shell.h"
8 #include "ash/common/wm_window.h"
7 #include "ash/shared/app_types.h" 9 #include "ash/shared/app_types.h"
8 #include "ash/wm_shell.h"
9 #include "ash/wm_window.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "chromeos/dbus/dbus_thread_manager.h" 12 #include "chromeos/dbus/dbus_thread_manager.h"
13 #include "chromeos/dbus/session_manager_client.h" 13 #include "chromeos/dbus/session_manager_client.h"
14 14
15 namespace arc { 15 namespace arc {
16 16
17 namespace { 17 namespace {
18 18
19 void OnDBusReply(login_manager::ContainerCpuRestrictionState state, 19 void OnDBusReply(login_manager::ContainerCpuRestrictionState state,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 if (shell) 61 if (shell)
62 shell->RemoveActivationObserver(this); 62 shell->RemoveActivationObserver(this);
63 } 63 }
64 64
65 void ArcInstanceThrottle::OnWindowActivated(ash::WmWindow* gained_active, 65 void ArcInstanceThrottle::OnWindowActivated(ash::WmWindow* gained_active,
66 ash::WmWindow* lost_active) { 66 ash::WmWindow* lost_active) {
67 ThrottleInstanceIfNeeded(gained_active); 67 ThrottleInstanceIfNeeded(gained_active);
68 } 68 }
69 69
70 } // namespace arc 70 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698