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

Unified Diff: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/chromeos/policy/configuration_policy_handler_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
index ba4a42def4ea42a0abc03187ab837627baf5c28a..58251a10c2bbe78c814721bf67409e33f059c854 100644
--- a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
+++ b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
@@ -304,34 +304,6 @@ base::Value* NetworkConfigurationPolicyHandler::SanitizeNetworkConfig(
return new base::StringValue(json_string);
}
-PinnedLauncherAppsPolicyHandler::PinnedLauncherAppsPolicyHandler()
- : ExtensionListPolicyHandler(key::kPinnedLauncherApps,
- prefs::kPinnedLauncherApps,
- false) {}
-
-PinnedLauncherAppsPolicyHandler::~PinnedLauncherAppsPolicyHandler() {}
-
-void PinnedLauncherAppsPolicyHandler::ApplyPolicySettings(
- const PolicyMap& policies,
- PrefValueMap* prefs) {
- PolicyErrorMap errors;
- const base::Value* policy_value = policies.GetValue(policy_name());
- const base::ListValue* policy_list = NULL;
- if (policy_value && policy_value->GetAsList(&policy_list) && policy_list) {
- base::ListValue* pinned_apps_list = new base::ListValue();
- for (base::ListValue::const_iterator entry(policy_list->begin());
- entry != policy_list->end(); ++entry) {
- std::string id;
- if ((*entry)->GetAsString(&id)) {
- base::DictionaryValue* app_dict = new base::DictionaryValue();
- app_dict->SetString(ash::kPinnedAppsPrefAppIDPath, id);
- pinned_apps_list->Append(app_dict);
- }
- }
- prefs->SetValue(pref_path(), pinned_apps_list);
- }
-}
-
ScreenMagnifierPolicyHandler::ScreenMagnifierPolicyHandler()
: IntRangePolicyHandlerBase(key::kScreenMagnifierType,
0, ash::MAGNIFIER_FULL, false) {

Powered by Google App Engine
This is Rietveld 408576698