| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/configuration_policy_provider_win.h" | 5 #include "chrome/browser/configuration_policy_provider_win.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/registry.h" | 10 #include "base/registry.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "base/string_piece.h" | 12 #include "base/string_piece.h" |
| 13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 | 16 |
| 17 #if defined(GOOGLE_CHROME_BUILD) | 17 #if defined(GOOGLE_CHROME_BUILD) |
| 18 const wchar_t ConfigurationPolicyProviderWin::kPolicyRegistrySubKey[] = | 18 const wchar_t ConfigurationPolicyProviderWin::kPolicyRegistrySubKey[] = |
| 19 L"SOFTWARE\\Policies\\Google\\Google Chrome"; | 19 L"SOFTWARE\\Policies\\Google\\Chrome"; |
| 20 #else | 20 #else |
| 21 const wchar_t ConfigurationPolicyProviderWin::kPolicyRegistrySubKey[] = | 21 const wchar_t ConfigurationPolicyProviderWin::kPolicyRegistrySubKey[] = |
| 22 L"SOFTWARE\\Policies\\Chromium"; | 22 L"SOFTWARE\\Policies\\Chromium"; |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 ConfigurationPolicyProviderWin::ConfigurationPolicyProviderWin() { | 25 ConfigurationPolicyProviderWin::ConfigurationPolicyProviderWin() { |
| 26 } | 26 } |
| 27 | 27 |
| 28 bool ConfigurationPolicyProviderWin::GetRegistryPolicyString( | 28 bool ConfigurationPolicyProviderWin::GetRegistryPolicyString( |
| 29 const wchar_t* value_name, string16* result) { | 29 const wchar_t* value_name, string16* result) { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 break; | 128 break; |
| 129 default: | 129 default: |
| 130 NOTREACHED(); | 130 NOTREACHED(); |
| 131 return false; | 131 return false; |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 | 134 |
| 135 return true; | 135 return true; |
| 136 } | 136 } |
| 137 | 137 |
| OLD | NEW |