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

Side by Side Diff: chrome/browser/profiles/profile_impl.h

Issue 12987006: Decouple managed mode code from the policy code in ProfileImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // that the declaration occurs AFTER things it depends on as destruction 201 // that the declaration occurs AFTER things it depends on as destruction
202 // happens in reverse order of declaration. 202 // happens in reverse order of declaration.
203 203
204 #if defined(ENABLE_CONFIGURATION_POLICY) 204 #if defined(ENABLE_CONFIGURATION_POLICY)
205 // |prefs_| depends on |policy_service_|, which depends on 205 // |prefs_| depends on |policy_service_|, which depends on
206 // |user_cloud_policy_manager_| and |managed_mode_policy_provider_|. 206 // |user_cloud_policy_manager_| and |managed_mode_policy_provider_|.
207 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, these 207 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, these
208 // should become proper ProfileKeyedServices as well. 208 // should become proper ProfileKeyedServices as well.
209 #if !defined(OS_CHROMEOS) 209 #if !defined(OS_CHROMEOS)
210 scoped_ptr<policy::UserCloudPolicyManager> cloud_policy_manager_; 210 scoped_ptr<policy::UserCloudPolicyManager> cloud_policy_manager_;
211 #endif 211 #endif
Bernhard Bauer 2013/03/25 10:36:36 Nit: Could you add comments to the #endif's here?
Joao da Silva 2013/03/25 10:42:11 Done. All of this will hopefully go away once |pre
212 #if defined(ENABLE_MANAGED_USERS)
212 scoped_ptr<policy::ManagedModePolicyProvider> managed_mode_policy_provider_; 213 scoped_ptr<policy::ManagedModePolicyProvider> managed_mode_policy_provider_;
213 #endif 214 #endif
215 #endif
214 scoped_ptr<policy::PolicyService> policy_service_; 216 scoped_ptr<policy::PolicyService> policy_service_;
215 217
216 // Keep |prefs_| on top for destruction order because |extension_prefs_|, 218 // Keep |prefs_| on top for destruction order because |extension_prefs_|,
217 // |net_pref_observer_|, |io_data_| and others store pointers to |prefs_| and 219 // |net_pref_observer_|, |io_data_| and others store pointers to |prefs_| and
218 // shall be destructed first. 220 // shall be destructed first.
219 scoped_refptr<PrefRegistrySyncable> pref_registry_; 221 scoped_refptr<PrefRegistrySyncable> pref_registry_;
220 scoped_ptr<PrefServiceSyncable> prefs_; 222 scoped_ptr<PrefServiceSyncable> prefs_;
221 scoped_ptr<PrefServiceSyncable> otr_prefs_; 223 scoped_ptr<PrefServiceSyncable> otr_prefs_;
222 ProfileImplIOData::Handle io_data_; 224 ProfileImplIOData::Handle io_data_;
223 scoped_refptr<ExtensionSpecialStoragePolicy> 225 scoped_refptr<ExtensionSpecialStoragePolicy>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} 270 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc}
269 271
270 Profile::Delegate* delegate_; 272 Profile::Delegate* delegate_;
271 273
272 chrome_browser_net::Predictor* predictor_; 274 chrome_browser_net::Predictor* predictor_;
273 275
274 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 276 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
275 }; 277 };
276 278
277 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 279 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698