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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list_factory.cc

Issue 506663003: Consolidates accessing and setting the UMA pref to be within metrics code (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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 base::Value::TYPE_BOOLEAN }, 98 base::Value::TYPE_BOOLEAN },
99 { key::kPasswordManagerEnabled, 99 { key::kPasswordManagerEnabled,
100 password_manager::prefs::kPasswordManagerSavingEnabled, 100 password_manager::prefs::kPasswordManagerSavingEnabled,
101 base::Value::TYPE_BOOLEAN }, 101 base::Value::TYPE_BOOLEAN },
102 { key::kPasswordManagerAllowShowPasswords, 102 { key::kPasswordManagerAllowShowPasswords,
103 password_manager::prefs::kPasswordManagerAllowShowPasswords, 103 password_manager::prefs::kPasswordManagerAllowShowPasswords,
104 base::Value::TYPE_BOOLEAN }, 104 base::Value::TYPE_BOOLEAN },
105 { key::kPrintingEnabled, 105 { key::kPrintingEnabled,
106 prefs::kPrintingEnabled, 106 prefs::kPrintingEnabled,
107 base::Value::TYPE_BOOLEAN }, 107 base::Value::TYPE_BOOLEAN },
108 { key::kMetricsReportingEnabled,
109 prefs::kMetricsReportingEnabled,
110 base::Value::TYPE_BOOLEAN },
111 { key::kApplicationLocaleValue, 108 { key::kApplicationLocaleValue,
112 prefs::kApplicationLocale, 109 prefs::kApplicationLocale,
113 base::Value::TYPE_STRING }, 110 base::Value::TYPE_STRING },
114 { key::kDisabledPlugins, 111 { key::kDisabledPlugins,
115 prefs::kPluginsDisabledPlugins, 112 prefs::kPluginsDisabledPlugins,
116 base::Value::TYPE_LIST }, 113 base::Value::TYPE_LIST },
117 { key::kDisabledPluginsExceptions, 114 { key::kDisabledPluginsExceptions,
118 prefs::kPluginsDisabledPluginsExceptions, 115 prefs::kPluginsDisabledPluginsExceptions,
119 base::Value::TYPE_LIST }, 116 base::Value::TYPE_LIST },
120 { key::kEnabledPlugins, 117 { key::kEnabledPlugins,
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 chrome_schema, 790 chrome_schema,
794 SCHEMA_STRICT, 791 SCHEMA_STRICT,
795 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 792 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
796 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 793 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
797 #endif // defined(OS_CHROMEOS) 794 #endif // defined(OS_CHROMEOS)
798 795
799 return handlers.Pass(); 796 return handlers.Pass();
800 } 797 }
801 798
802 } // namespace policy 799 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698