Chromium Code Reviews| 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 #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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 bool AreArcAllOptInPreferencesManagedForProfile(const Profile* profile); | 105 bool AreArcAllOptInPreferencesManagedForProfile(const Profile* profile); |
| 106 | 106 |
| 107 // Checks and updates the preference value whether the underlying filesystem | 107 // Checks and updates the preference value whether the underlying filesystem |
| 108 // for the profile is compatible with ARC, when necessary. After it's done (or | 108 // for the profile is compatible with ARC, when necessary. After it's done (or |
| 109 // skipped), |callback| is run either synchronously or asynchronously. | 109 // skipped), |callback| is run either synchronously or asynchronously. |
| 110 void UpdateArcFileSystemCompatibilityPrefIfNeeded( | 110 void UpdateArcFileSystemCompatibilityPrefIfNeeded( |
| 111 const AccountId& account_id, | 111 const AccountId& account_id, |
| 112 const base::FilePath& profile_path, | 112 const base::FilePath& profile_path, |
| 113 const base::Closure& callback); | 113 const base::Closure& callback); |
| 114 | 114 |
| 115 // Returns if the migration from ecryptfs to ext4 is allowed. It is true if the | |
| 116 // 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.
| |
| 117 // consumer owned or if the device policy is present and has the value | |
| 118 // |kAllowMigration|. The response is cached the first time the function is | |
| 119 // 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
| |
| 120 bool IsArcMigrationAllowed(); | |
| 121 | |
| 122 // For testing IsArcMigrationAllowed, the global flags have to be reset before | |
| 123 // every test. | |
| 124 void ResetArcMigrationAllowedForTesting(); | |
| 125 | |
| 115 } // namespace arc | 126 } // namespace arc |
| 116 | 127 |
| 117 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_ | 128 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_ |
| OLD | NEW |