| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/arc/arc_util.h" | 5 #include "chrome/browser/chromeos/arc/arc_util.h" |
| 6 | 6 |
| 7 #include <linux/magic.h> | 7 #include <linux/magic.h> |
| 8 #include <sys/statfs.h> | 8 #include <sys/statfs.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 253 |
| 254 // If the compatibility has been already confirmed, skip the check. | 254 // If the compatibility has been already confirmed, skip the check. |
| 255 if (GetFileSystemCompatibilityPref(account_id) != kFileSystemIncompatible) { | 255 if (GetFileSystemCompatibilityPref(account_id) != kFileSystemIncompatible) { |
| 256 callback.Run(); | 256 callback.Run(); |
| 257 return; | 257 return; |
| 258 } | 258 } |
| 259 | 259 |
| 260 // Otherwise, check the underlying filesystem. | 260 // Otherwise, check the underlying filesystem. |
| 261 base::PostTaskWithTraitsAndReplyWithResult( | 261 base::PostTaskWithTraitsAndReplyWithResult( |
| 262 FROM_HERE, | 262 FROM_HERE, |
| 263 base::TaskTraits() | 263 {base::MayBlock(), base::TaskPriority::USER_BLOCKING, |
| 264 .WithShutdownBehavior( | 264 base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, |
| 265 base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN) | |
| 266 .WithPriority(base::TaskPriority::USER_BLOCKING) | |
| 267 .MayBlock(), | |
| 268 base::Bind(&IsArcCompatibleFilesystem, profile_path), | 265 base::Bind(&IsArcCompatibleFilesystem, profile_path), |
| 269 base::Bind(&StoreCompatibilityCheckResult, account_id, callback)); | 266 base::Bind(&StoreCompatibilityCheckResult, account_id, callback)); |
| 270 } | 267 } |
| 271 | 268 |
| 272 } // namespace arc | 269 } // namespace arc |
| OLD | NEW |