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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 6520008: Device policy infrastructure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 5c7e003eb75dda013aa1206e3083b2028a489608..c656935879a805d0304354350a0a64607b1ed1bc 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -58,7 +58,7 @@
#include "chrome/browser/password_manager/password_store_default.h"
#include "chrome/browser/policy/configuration_policy_pref_store.h"
#include "chrome/browser/policy/configuration_policy_provider.h"
-#include "chrome/browser/policy/profile_policy_context.h"
+#include "chrome/browser/policy/profile_policy_connector.h"
#include "chrome/browser/prefs/browser_prefs.h"
#include "chrome/browser/prefs/pref_value_store.h"
#include "chrome/browser/prerender/prerender_manager.h"
@@ -342,9 +342,9 @@ ProfileImpl::ProfileImpl(const FilePath& path)
io_data_.Init(cookie_path, cache_path, cache_max_size,
media_cache_path, media_cache_max_size, extensions_cookie_path);
- // Initialize the ProfilePolicyContext after |io_data_| since it requires
+ // Initialize the ProfilePolicyConnector after |io_data_| since it requires
// the URLRequestContextGetter to be initialized.
- GetPolicyContext()->Initialize();
+ GetPolicyConnector()->Initialize();
}
void ProfileImpl::InitExtensions() {
@@ -509,7 +509,7 @@ ProfileImpl::~ProfileImpl() {
Source<Profile>(this),
NotificationService::NoDetails());
- GetPolicyContext()->Shutdown();
+ GetPolicyConnector()->Shutdown();
tab_restore_service_ = NULL;
@@ -1366,11 +1366,11 @@ ExtensionInfoMap* ProfileImpl::GetExtensionInfoMap() {
return extension_info_map_.get();
}
-policy::ProfilePolicyContext* ProfileImpl::GetPolicyContext() {
- if (!profile_policy_context_.get())
- profile_policy_context_.reset(new policy::ProfilePolicyContext(this));
+policy::ProfilePolicyConnector* ProfileImpl::GetPolicyConnector() {
+ if (!profile_policy_connector_.get())
+ profile_policy_connector_.reset(new policy::ProfilePolicyConnector(this));
- return profile_policy_context_.get();
+ return profile_policy_connector_.get();
}
ChromeURLDataManager* ProfileImpl::GetChromeURLDataManager() {

Powered by Google App Engine
This is Rietveld 408576698