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

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: Always pass all params to setMetricsReportingCheckboxState, minor changes 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 base::Value::TYPE_BOOLEAN }, 94 base::Value::TYPE_BOOLEAN },
95 { key::kPasswordManagerEnabled, 95 { key::kPasswordManagerEnabled,
96 password_manager::prefs::kPasswordManagerSavingEnabled, 96 password_manager::prefs::kPasswordManagerSavingEnabled,
97 base::Value::TYPE_BOOLEAN }, 97 base::Value::TYPE_BOOLEAN },
98 { key::kPasswordManagerAllowShowPasswords, 98 { key::kPasswordManagerAllowShowPasswords,
99 password_manager::prefs::kPasswordManagerAllowShowPasswords, 99 password_manager::prefs::kPasswordManagerAllowShowPasswords,
100 base::Value::TYPE_BOOLEAN }, 100 base::Value::TYPE_BOOLEAN },
101 { key::kPrintingEnabled, 101 { key::kPrintingEnabled,
102 prefs::kPrintingEnabled, 102 prefs::kPrintingEnabled,
103 base::Value::TYPE_BOOLEAN }, 103 base::Value::TYPE_BOOLEAN },
104 { key::kMetricsReportingEnabled,
105 prefs::kMetricsReportingEnabled,
106 base::Value::TYPE_BOOLEAN },
107 { key::kApplicationLocaleValue, 104 { key::kApplicationLocaleValue,
108 prefs::kApplicationLocale, 105 prefs::kApplicationLocale,
109 base::Value::TYPE_STRING }, 106 base::Value::TYPE_STRING },
110 { key::kDisabledPlugins, 107 { key::kDisabledPlugins,
111 prefs::kPluginsDisabledPlugins, 108 prefs::kPluginsDisabledPlugins,
112 base::Value::TYPE_LIST }, 109 base::Value::TYPE_LIST },
113 { key::kDisabledPluginsExceptions, 110 { key::kDisabledPluginsExceptions,
114 prefs::kPluginsDisabledPluginsExceptions, 111 prefs::kPluginsDisabledPluginsExceptions,
115 base::Value::TYPE_LIST }, 112 base::Value::TYPE_LIST },
116 { key::kEnabledPlugins, 113 { key::kEnabledPlugins,
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 chrome_schema, 786 chrome_schema,
790 SCHEMA_STRICT, 787 SCHEMA_STRICT,
791 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 788 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
792 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 789 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
793 #endif // defined(OS_CHROMEOS) 790 #endif // defined(OS_CHROMEOS)
794 791
795 return handlers.Pass(); 792 return handlers.Pass();
796 } 793 }
797 794
798 } // namespace policy 795 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698