| Index: chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc
|
| diff --git a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc
|
| index 79be422c34d293381368a8a5948180168c4de701..46687431e3afcac62eb91ef5618c173a7eeede4a 100644
|
| --- a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc
|
| +++ b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/memory/ptr_util.h"
|
| #include "base/optional.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| +#include "chrome/browser/chromeos/arc/arc_util.h"
|
| #include "components/arc/arc_bridge_service.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "url/gurl.h"
|
| @@ -161,8 +162,11 @@ void ArcFileSystemOperationRunner::OnInstanceClosed() {
|
|
|
| void ArcFileSystemOperationRunner::OnStateChanged() {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| - SetShouldDefer(ArcSessionManager::Get()->IsArcPlayStoreEnabled() &&
|
| - !arc_bridge_service()->file_system()->has_instance());
|
| + // TODO(hidehiko): Revisit the condition, when ARC is running without
|
| + // profile.
|
| + SetShouldDefer(
|
| + IsArcPlayStoreEnabledForProfile(ArcSessionManager::Get()->profile()) &&
|
| + !arc_bridge_service()->file_system()->has_instance());
|
| }
|
|
|
| void ArcFileSystemOperationRunner::SetShouldDefer(bool should_defer) {
|
|
|