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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc

Issue 2642783003: Move more utility functions to arc_util. (Closed)
Patch Set: address comments Created 3 years, 11 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
Index: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
index 8f3d9f069dbb14c9d27abd01428d7b35dd67b8fc..0c12c0a6fe5faf45cbf1edaf50f05deb4cc645e3 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
@@ -19,8 +19,8 @@
#include "ash/wm/window_util.h"
#include "base/bind.h"
#include "base/memory/ptr_util.h"
-#include "chrome/browser/chromeos/arc/arc_session_manager.h"
#include "chrome/browser/chromeos/arc/arc_support_host.h"
+#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/app_list/arc/arc_app_utils.h"
#include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h"
@@ -255,7 +255,7 @@ ArcAppWindowLauncherController::ArcAppWindowLauncherController(
ChromeLauncherController* owner,
ash::ShelfDelegate* shelf_delegate)
: AppWindowLauncherController(owner), shelf_delegate_(shelf_delegate) {
- if (arc::ArcSessionManager::IsAllowedForProfile(owner->profile())) {
+ if (arc::IsArcAllowedForProfile(owner->profile())) {
observed_profile_ = owner->profile();
StartObserving(observed_profile_);
}
@@ -315,7 +315,7 @@ void ArcAppWindowLauncherController::ActiveUserChanged(
void ArcAppWindowLauncherController::AdditionalUserAddedToSession(
Profile* profile) {
- DCHECK(!arc::ArcSessionManager::IsAllowedForProfile(profile));
+ DCHECK(!arc::IsArcAllowedForProfile(profile));
}
void ArcAppWindowLauncherController::OnWindowInitialized(aura::Window* window) {

Powered by Google App Engine
This is Rietveld 408576698