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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 2702723002: Extract kArcEnabled preference from ArcSessionManager part 1. (Closed)
Patch Set: Address comments. Created 3 years, 10 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/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 faed6fb8d447f8b8889ff0404493f14421837a9d..e66f8d75be7b20294e88d70503c898e97369a293 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -123,7 +123,6 @@
#include "ash/shell.h" // nogncheck
#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"
@@ -1219,7 +1218,7 @@ void BrowserOptionsHandler::InitializePage() {
if (arc::IsArcAllowedForProfile(profile) &&
!arc::IsArcOptInVerificationDisabled()) {
base::FundamentalValue is_arc_enabled(
- arc::ArcSessionManager::Get()->IsArcPlayStoreEnabled());
+ arc::IsArcPlayStoreEnabledForProfile(profile));
web_ui()->CallJavascriptFunctionUnsafe(
"BrowserOptions.showAndroidAppsSection",
is_arc_enabled);

Powered by Google App Engine
This is Rietveld 408576698