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

Unified Diff: chrome/browser/policy/managed_mode_policy_provider.h

Issue 11027070: Moved JsonPrefStore to use SequencedWorkerPool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
Index: chrome/browser/policy/managed_mode_policy_provider.h
diff --git a/chrome/browser/policy/managed_mode_policy_provider.h b/chrome/browser/policy/managed_mode_policy_provider.h
index ddaaeb754577b4c7cc9173c7bc38b5e77e4a3d69..48f44d26790c7c6dcf551080099f2275e0505cca 100644
--- a/chrome/browser/policy/managed_mode_policy_provider.h
+++ b/chrome/browser/policy/managed_mode_policy_provider.h
@@ -11,6 +11,10 @@
class Profile;
+namespace base {
+class SequencedTaskRunner;
+}
+
namespace policy {
// This class sets policies that are defined by a local user via "Managed Mode".
@@ -25,8 +29,12 @@ class ManagedModePolicyProvider
static const char kPolicies[];
// Creates a new ManagedModePolicyProvider that caches its policies in a JSON
- // file inside the profile folder.
- static ManagedModePolicyProvider* Create(Profile* profile);
+ // file inside the profile folder. |sequenced_task_runner| ensures that all
+ // file I/O operations are executed in the order that does not collide
+ // with Profile's file operations.
+ static ManagedModePolicyProvider* Create(
+ Profile* profile,
+ base::SequencedTaskRunner* sequenced_task_runner);
// Use this constructor to inject a different PrefStore (e.g. for testing).
explicit ManagedModePolicyProvider(PersistentPrefStore* store);

Powered by Google App Engine
This is Rietveld 408576698