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

Unified Diff: chrome/browser/ui/webui/settings/chromeos/device_storage_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/settings/chromeos/device_storage_handler.cc
diff --git a/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc b/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc
index ca8bb8e8abc1bf483ca862be7beee13f04c4a5af..b23bec2a729461a92ab223976af4d2b5f9ce8c71 100644
--- a/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc
+++ b/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc
@@ -22,7 +22,6 @@
#include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h"
#include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h"
#include "chrome/browser/browsing_data/browsing_data_service_worker_helper.h"
-#include "chrome/browser/chromeos/arc/arc_session_manager.h"
#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/chromeos/drive/file_system_util.h"
#include "chrome/browser/chromeos/file_manager/path_util.h"
@@ -347,9 +346,8 @@ void StorageHandler::UpdateAndroidSize() {
updating_android_size_ = true;
Profile* const profile = Profile::FromWebUI(web_ui());
- if (!arc::IsArcAllowedForProfile(profile) ||
- arc::IsArcOptInVerificationDisabled() ||
- !arc::ArcSessionManager::Get()->IsArcPlayStoreEnabled()) {
+ if (!arc::IsArcPlayStoreEnabledForProfile(profile) ||
Luis Héctor Chávez 2017/02/21 16:50:02 Can this trigger a DCHECK? |arc::IsArcAllowedForPr
hidehiko 2017/02/21 17:25:14 Acknowledged.
+ arc::IsArcOptInVerificationDisabled()) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698