Chromium Code Reviews| Index: chrome/browser/chromeos/arc/arc_util.h |
| diff --git a/chrome/browser/chromeos/arc/arc_util.h b/chrome/browser/chromeos/arc/arc_util.h |
| index affd485b31b8546bc0e81891aa9e73b2d119761a..d36205f72d6e771e2a09d23fd0696a7d7db7b11d 100644 |
| --- a/chrome/browser/chromeos/arc/arc_util.h |
| +++ b/chrome/browser/chromeos/arc/arc_util.h |
| @@ -112,6 +112,17 @@ void UpdateArcFileSystemCompatibilityPrefIfNeeded( |
| const base::FilePath& profile_path, |
| const base::Closure& callback); |
| +// Returns if the migration from ecryptfs to ext4 is allowed. It is true if the |
| +// flag specifying the need to check the policy is missing or if the device is |
|
bartfab (slow)
2017/06/12 12:49:04
"the flag specifying the need to check the policy"
igorcov
2017/06/12 16:50:09
Done.
|
| +// consumer owned or if the device policy is present and has the value |
| +// |kAllowMigration|. The response is cached the first time the function is |
| +// used, and the policy update won't change the return value after that. |
|
bartfab (slow)
2017/06/12 12:49:04
1: Nit: s/the/a/
2: Nit: s/after that/after that u
igorcov
2017/06/12 16:50:10
1,2: Done
3: After Chrome crash, user has to sign
bartfab (slow)
2017/06/13 09:56:01
Re 3: Actually, no. login_manager is a watchdog th
igorcov
2017/06/16 11:13:03
Changed the code so that policy is decoded every t
|
| +bool IsArcMigrationAllowed(); |
| + |
| +// For testing IsArcMigrationAllowed, the global flags have to be reset before |
| +// every test. |
| +void ResetArcMigrationAllowedForTesting(); |
| + |
| } // namespace arc |
| #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_ |