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

Side by Side 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 unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 bool IsActiveDirectoryUserForProfile(const Profile* profile); 109 bool IsActiveDirectoryUserForProfile(const Profile* profile);
110 110
111 // Checks and updates the preference value whether the underlying filesystem 111 // Checks and updates the preference value whether the underlying filesystem
112 // for the profile is compatible with ARC, when necessary. After it's done (or 112 // for the profile is compatible with ARC, when necessary. After it's done (or
113 // skipped), |callback| is run either synchronously or asynchronously. 113 // skipped), |callback| is run either synchronously or asynchronously.
114 void UpdateArcFileSystemCompatibilityPrefIfNeeded( 114 void UpdateArcFileSystemCompatibilityPrefIfNeeded(
115 const AccountId& account_id, 115 const AccountId& account_id,
116 const base::FilePath& profile_path, 116 const base::FilePath& profile_path,
117 const base::Closure& callback); 117 const base::Closure& callback);
118 118
119 // Returns if the migration from ecryptfs to ext4 is allowed. It is true if the
120 // flag --need-arc-migration-policy-check is not set or if the device is
121 // consumer owned or if the device policy is present and has the value
122 // |kAllowMigration|. The response is cached the first time the function is
123 // used, and a policy update won't change the return value after that until the
124 // next Chrome restart.
125 bool IsArcMigrationAllowed();
126
127 // For testing IsArcMigrationAllowed, the global flags have to be reset before
128 // every test.
129 void ResetArcMigrationAllowedForTesting();
130
119 } // namespace arc 131 } // namespace arc
120 132
121 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_ 133 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_
OLDNEW
« 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