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

Side by Side Diff: chrome/browser/managed_mode/managed_user_service.h

Issue 12225051: Initialize ManagedUserService after ExtensionSystem to register as extension management policy prov… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 10 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/managed_mode/managed_user_service.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_MANAGED_MODE_MANAGED_USER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/prefs/public/pref_change_registrar.h" 10 #include "base/prefs/public/pref_change_registrar.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Returns the manual behavior for the given URL. 72 // Returns the manual behavior for the given URL.
73 ManualBehavior GetManualBehaviorForURL(const GURL& url); 73 ManualBehavior GetManualBehaviorForURL(const GURL& url);
74 74
75 // Sets the manual behavior for the given URL. 75 // Sets the manual behavior for the given URL.
76 void SetManualBehaviorForURLs(const std::vector<GURL>& url, 76 void SetManualBehaviorForURLs(const std::vector<GURL>& url,
77 ManualBehavior behavior); 77 ManualBehavior behavior);
78 78
79 void SetElevatedForTesting(bool is_elevated); 79 void SetElevatedForTesting(bool is_elevated);
80 80
81 // Initializes this object. This method does nothing if the profile is not 81 // Initializes this object. This method does nothing if the profile is not
82 // managed. This method only needs to be called if the profile is set to be 82 // managed.
83 // managed after the ManagedUserService has been created (which happens when
84 // creating a new profile).
85 void Init(); 83 void Init();
86 84
87 // ExtensionManagementPolicy::Provider implementation: 85 // extensions::ManagementPolicy::Provider implementation:
88 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; 86 virtual std::string GetDebugPolicyProviderName() const OVERRIDE;
89 virtual bool UserMayLoad(const extensions::Extension* extension, 87 virtual bool UserMayLoad(const extensions::Extension* extension,
90 string16* error) const OVERRIDE; 88 string16* error) const OVERRIDE;
91 virtual bool UserMayModifySettings(const extensions::Extension* extension, 89 virtual bool UserMayModifySettings(const extensions::Extension* extension,
92 string16* error) const OVERRIDE; 90 string16* error) const OVERRIDE;
93 91
94 // content::NotificationObserver implementation: 92 // content::NotificationObserver implementation:
95 virtual void Observe(int type, 93 virtual void Observe(int type,
96 const content::NotificationSource& source, 94 const content::NotificationSource& source,
97 const content::NotificationDetails& details) OVERRIDE; 95 const content::NotificationDetails& details) OVERRIDE;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // example). 156 // example).
159 bool is_elevated_; 157 bool is_elevated_;
160 158
161 content::NotificationRegistrar registrar_; 159 content::NotificationRegistrar registrar_;
162 PrefChangeRegistrar pref_change_registrar_; 160 PrefChangeRegistrar pref_change_registrar_;
163 161
164 URLFilterContext url_filter_context_; 162 URLFilterContext url_filter_context_;
165 }; 163 };
166 164
167 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ 165 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/managed_mode/managed_user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698