OLD | NEW |
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/profiles/incognito_mode_policy_handler.h" | 5 #include "chrome/browser/profiles/incognito_mode_policy_handler.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/prefs/pref_value_map.h" | 8 #include "base/prefs/pref_value_map.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/policy/policy_error_map.h" | 11 #include "chrome/browser/policy/policy_error_map.h" |
12 #include "chrome/browser/policy/policy_map.h" | |
13 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 12 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "components/policy/core/common/policy_map.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 #include "policy/policy_constants.h" | 16 #include "policy/policy_constants.h" |
17 | 17 |
18 namespace policy { | 18 namespace policy { |
19 | 19 |
20 IncognitoModePolicyHandler::IncognitoModePolicyHandler() {} | 20 IncognitoModePolicyHandler::IncognitoModePolicyHandler() {} |
21 | 21 |
22 IncognitoModePolicyHandler::~IncognitoModePolicyHandler() {} | 22 IncognitoModePolicyHandler::~IncognitoModePolicyHandler() {} |
23 | 23 |
24 bool IncognitoModePolicyHandler::CheckPolicySettings(const PolicyMap& policies, | 24 bool IncognitoModePolicyHandler::CheckPolicySettings(const PolicyMap& policies, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 prefs->SetInteger( | 82 prefs->SetInteger( |
83 prefs::kIncognitoModeAvailability, | 83 prefs::kIncognitoModeAvailability, |
84 enabled ? IncognitoModePrefs::ENABLED : IncognitoModePrefs::DISABLED); | 84 enabled ? IncognitoModePrefs::ENABLED : IncognitoModePrefs::DISABLED); |
85 } else { | 85 } else { |
86 NOTREACHED(); | 86 NOTREACHED(); |
87 } | 87 } |
88 } | 88 } |
89 } | 89 } |
90 | 90 |
91 } // namespace policy | 91 } // namespace policy |
OLD | NEW |