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

Side by Side Diff: chrome/browser/prefs/testing_pref_store.h

Issue 10510006: Add ManagedModePolicyProvider and extension API to get and set policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PREFS_TESTING_PREF_STORE_H_ 5 #ifndef CHROME_BROWSER_PREFS_TESTING_PREF_STORE_H_
6 #define CHROME_BROWSER_PREFS_TESTING_PREF_STORE_H_ 6 #define CHROME_BROWSER_PREFS_TESTING_PREF_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 protected: 67 protected:
68 virtual ~TestingPrefStore(); 68 virtual ~TestingPrefStore();
69 69
70 private: 70 private:
71 // Stores the preference values. 71 // Stores the preference values.
72 PrefValueMap prefs_; 72 PrefValueMap prefs_;
73 73
74 // Flag that indicates if the PrefStore is read-only 74 // Flag that indicates if the PrefStore is read-only
75 bool read_only_; 75 bool read_only_;
76 76
77 // Flag that indicates if the method WritePrefs was called.
78 bool prefs_written_;
79
80 // Whether initialization has been completed. 77 // Whether initialization has been completed.
81 bool init_complete_; 78 bool init_complete_;
82 79
83 ObserverList<PrefStore::Observer, true> observers_; 80 ObserverList<PrefStore::Observer, true> observers_;
84 81
85 DISALLOW_COPY_AND_ASSIGN(TestingPrefStore); 82 DISALLOW_COPY_AND_ASSIGN(TestingPrefStore);
86 }; 83 };
87 84
88 #endif // CHROME_BROWSER_PREFS_TESTING_PREF_STORE_H_ 85 #endif // CHROME_BROWSER_PREFS_TESTING_PREF_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/managed_mode_policy_provider_unittest.cc ('k') | chrome/browser/prefs/testing_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698