| 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/sessions/restore_on_startup_policy_handler.h" | 5 #include "chrome/browser/sessions/restore_on_startup_policy_handler.h" |
| 6 | 6 |
| 7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/prefs/session_startup_pref.h" | 9 #include "chrome/browser/prefs/session_startup_pref.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| 11 #include "components/policy/core/browser/policy_error_map.h" | 11 #include "components/policy/core/browser/policy_error_map.h" |
| 12 #include "components/policy/core/common/policy_map.h" | 12 #include "components/policy/core/common/policy_map.h" |
| 13 #include "components/policy/policy_constants.h" | 13 #include "components/policy/policy_constants.h" |
| 14 #include "components/prefs/pref_value_map.h" | 14 #include "components/prefs/pref_value_map.h" |
| 15 #include "grit/components_strings.h" | 15 #include "components/strings/grit/components_strings.h" |
| 16 | 16 |
| 17 namespace policy { | 17 namespace policy { |
| 18 | 18 |
| 19 RestoreOnStartupPolicyHandler::RestoreOnStartupPolicyHandler() | 19 RestoreOnStartupPolicyHandler::RestoreOnStartupPolicyHandler() |
| 20 : TypeCheckingPolicyHandler(key::kRestoreOnStartup, | 20 : TypeCheckingPolicyHandler(key::kRestoreOnStartup, |
| 21 base::Value::TYPE_INTEGER) {} | 21 base::Value::TYPE_INTEGER) {} |
| 22 | 22 |
| 23 RestoreOnStartupPolicyHandler::~RestoreOnStartupPolicyHandler() { | 23 RestoreOnStartupPolicyHandler::~RestoreOnStartupPolicyHandler() { |
| 24 } | 24 } |
| 25 | 25 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 default: | 83 default: |
| 84 errors->AddError(policy_name(), | 84 errors->AddError(policy_name(), |
| 85 IDS_POLICY_OUT_OF_RANGE_ERROR, | 85 IDS_POLICY_OUT_OF_RANGE_ERROR, |
| 86 base::IntToString(restore_value)); | 86 base::IntToString(restore_value)); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 return true; | 89 return true; |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace policy | 92 } // namespace policy |
| OLD | NEW |