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

Unified Diff: chrome/browser/chromeos/arc/arc_util.h

Issue 2890843002: Policy implementation for encryptfs to ext4 migration strategy (Closed)
Patch Set: Merge done Created 3 years, 6 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
« no previous file with comments | « chrome/browser/chromeos/arc/arc_session_manager.cc ('k') | chrome/browser/chromeos/arc/arc_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 442117dcc0b38dc5359d000f6a520c7f5e028aea..75554190a19096533c730ea182d6e3c1a2f570cc 100644
--- a/chrome/browser/chromeos/arc/arc_util.h
+++ b/chrome/browser/chromeos/arc/arc_util.h
@@ -116,6 +116,18 @@ 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 --need-arc-migration-policy-check is not set or if the device is
+// 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 a policy update won't change the return value after that until the
+// next Chrome restart.
+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_
« no previous file with comments | « chrome/browser/chromeos/arc/arc_session_manager.cc ('k') | chrome/browser/chromeos/arc/arc_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698