| Index: chrome/browser/ui/webui/options/browser_options_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
|
| index b8483264a17692c99ec7ac53667dde910fc9bc3e..3490fe533c87e63d932622dfeca69f3d4ffcb867 100644
|
| --- a/chrome/browser/ui/webui/options/browser_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
|
| @@ -124,7 +124,6 @@
|
| #include "chrome/browser/browser_process_platform_part.h"
|
| #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
|
| #include "chrome/browser/chromeos/arc/arc_session_manager.h"
|
| -#include "chrome/browser/chromeos/arc/arc_util.h"
|
| #include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h"
|
| #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h"
|
| #include "chrome/browser/chromeos/net/wake_on_wifi_manager.h"
|
| @@ -141,7 +140,7 @@
|
| #include "chromeos/chromeos_switches.h"
|
| #include "chromeos/dbus/dbus_thread_manager.h"
|
| #include "chromeos/dbus/power_manager_client.h"
|
| -#include "components/arc/arc_util.h"
|
| +#include "components/arc/arc_bridge_service.h"
|
| #include "components/user_manager/user.h"
|
| #include "components/user_manager/user_manager.h"
|
| #include "ui/gfx/image/image_skia.h"
|
| @@ -1167,8 +1166,8 @@
|
| chromeos::WallpaperManager::Get()->IsPolicyControlled(
|
| user->GetAccountId()));
|
|
|
| - if (arc::IsArcAllowedForProfile(profile) &&
|
| - !arc::IsArcOptInVerificationDisabled()) {
|
| + if (arc::ArcSessionManager::IsAllowedForProfile(profile) &&
|
| + !arc::ArcSessionManager::IsOptInVerificationDisabled()) {
|
| base::FundamentalValue is_arc_enabled(
|
| arc::ArcSessionManager::Get()->IsArcEnabled());
|
| web_ui()->CallJavascriptFunctionUnsafe(
|
| @@ -2006,7 +2005,7 @@
|
| const base::ListValue* args) {
|
| Profile* profile = Profile::FromWebUI(web_ui());
|
| // Settings in secondary profile cannot access ARC.
|
| - if (!arc::IsArcAllowedForProfile(profile)) {
|
| + if (!arc::ArcSessionManager::IsAllowedForProfile(profile)) {
|
| LOG(ERROR) << "Settings can't be invoked for non-primary profile";
|
| return;
|
| }
|
| @@ -2025,7 +2024,7 @@
|
| const base::ListValue *args) {
|
| Profile* profile = Profile::FromWebUI(web_ui());
|
| // Settings in secondary profile cannot access ARC.
|
| - if (!arc::IsArcAllowedForProfile(profile)) {
|
| + if (!arc::ArcSessionManager::IsAllowedForProfile(profile)) {
|
| LOG(WARNING) << "Settings can't be invoked for non-primary profile";
|
| return;
|
| }
|
|
|