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

Side by Side Diff: chrome/browser/chromeos/arc/arc_util.h

Issue 2890843002: Policy implementation for encryptfs to ext4 migration strategy (Closed)
Patch Set: Changed flag value 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 it
116 // is known that the device is consumer owned, or if the device policy is
117 // present and has the value |kAllowMigration|. The response is cached the first
118 // time the function is used, and the policy update won't change the return
119 // value after that.
120 bool IsMigrationAllowed();
hidehiko 2017/06/09 09:40:39 nit: could you rename to IsArcMigrationAllowed() f
igorcov 2017/06/09 12:55:11 Done.
121
122 // For testing IsMigrationAllowed, the global flags have to be reset before
123 // every test.
124 void ResetGlobalDataForTesting();
hidehiko 2017/06/09 09:40:39 nit: maybe ResetArcMigrationAllowedForTesting() ?
igorcov 2017/06/09 12:55:11 Done.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698