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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.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/chrome_launcher_controller_impl.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
index a5def51ab68e48a90d074cfa3aaf640eecaaafee..c04792afee2679d52dfb6fa32c2c0deecf18785d 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
@@ -29,6 +29,7 @@
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chrome_notification_types.h"
+#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/defaults.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/prefs/incognito_mode_prefs.h"
@@ -202,7 +203,7 @@ ChromeLauncherControllerImpl::ChromeLauncherControllerImpl(
AttachProfile(profile);
model_->AddObserver(this);
- if (arc::ArcSessionManager::IsAllowedForProfile(this->profile()))
+ if (arc::IsArcAllowedForProfile(this->profile()))
arc_deferred_launcher_.reset(new ArcAppDeferredLauncherController(this));
// In multi profile mode we might have a window manager. We try to create it
@@ -806,7 +807,7 @@ void ChromeLauncherControllerImpl::AttachProfile(Profile* profile_to_attach) {
new LauncherExtensionAppUpdater(this, profile()));
app_updaters_.push_back(std::move(extension_app_updater));
- if (arc::ArcSessionManager::IsAllowedForProfile(profile())) {
+ if (arc::IsArcAllowedForProfile(profile())) {
std::unique_ptr<LauncherAppUpdater> arc_app_updater(
new LauncherArcAppUpdater(this, profile()));
app_updaters_.push_back(std::move(arc_app_updater));

Powered by Google App Engine
This is Rietveld 408576698