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

Unified Diff: chrome/browser/ui/webui/settings/chromeos/android_apps_handler.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/webui/settings/chromeos/android_apps_handler.cc
diff --git a/chrome/browser/ui/webui/settings/chromeos/android_apps_handler.cc b/chrome/browser/ui/webui/settings/chromeos/android_apps_handler.cc
index 3dbd8c6d293254e174bf3f55840c5a3b21a4fe32..e171073448e00a3c19b417403f16032ad6656ff4 100644
--- a/chrome/browser/ui/webui/settings/chromeos/android_apps_handler.cc
+++ b/chrome/browser/ui/webui/settings/chromeos/android_apps_handler.cc
@@ -6,6 +6,7 @@
#include "base/values.h"
#include "chrome/browser/chromeos/arc/arc_session_manager.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" // kSettingsAppId
#include "ui/events/event_constants.h"
@@ -92,7 +93,7 @@ void AndroidAppsHandler::ShowAndroidAppsSettings(const base::ListValue* args) {
int flags = activated_from_keyboard ? ui::EF_NONE : ui::EF_LEFT_MOUSE_BUTTON;
// Settings in secondary profile cannot access ARC.
- CHECK(arc::ArcSessionManager::IsAllowedForProfile(profile_));
+ CHECK(arc::IsArcAllowedForProfile(profile_));
arc::LaunchAndroidSettingsApp(profile_, flags);
}

Powered by Google App Engine
This is Rietveld 408576698