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

Unified Diff: chrome/browser/extensions/external_policy_loader.cc

Issue 140343002: extensions: Relocate pref name constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort constants and merge Created 6 years, 11 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/extensions/external_policy_loader.cc
diff --git a/chrome/browser/extensions/external_policy_loader.cc b/chrome/browser/extensions/external_policy_loader.cc
index ddf509a129eca631417adba7bac76f986348c1b3..a1e9e6edd82d3c1d1650c9c519209ffcb88879c0 100644
--- a/chrome/browser/extensions/external_policy_loader.cc
+++ b/chrome/browser/extensions/external_policy_loader.cc
@@ -15,16 +15,17 @@
#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
+#include "extensions/browser/pref_names.h"
namespace extensions {
ExternalPolicyLoader::ExternalPolicyLoader(Profile* profile)
: profile_(profile) {
pref_change_registrar_.Init(profile_->GetPrefs());
- pref_change_registrar_.Add(prefs::kExtensionInstallForceList,
+ pref_change_registrar_.Add(pref_names::kInstallForceList,
base::Bind(&ExternalPolicyLoader::StartLoading,
base::Unretained(this)));
- pref_change_registrar_.Add(prefs::kExtensionAllowedTypes,
+ pref_change_registrar_.Add(pref_names::kAllowedTypes,
base::Bind(&ExternalPolicyLoader::StartLoading,
base::Unretained(this)));
notification_registrar_.Add(this,
@@ -57,7 +58,7 @@ void ExternalPolicyLoader::Observe(
void ExternalPolicyLoader::StartLoading() {
const base::DictionaryValue* forcelist =
- profile_->GetPrefs()->GetDictionary(prefs::kExtensionInstallForceList);
+ profile_->GetPrefs()->GetDictionary(pref_names::kInstallForceList);
prefs_.reset(forcelist ? forcelist->DeepCopy() : NULL);
LoadFinished();
}
« no previous file with comments | « chrome/browser/extensions/external_policy_loader.h ('k') | chrome/browser/extensions/external_policy_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698