| 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/common/policy_constants.h" | 5 #include "chrome/common/policy_constants.h" |
| 6 | 6 |
| 7 namespace policy { | 7 namespace policy { |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #if defined(GOOGLE_CHROME_BUILD) | 10 #if defined(GOOGLE_CHROME_BUILD) |
| 11 const wchar_t kRegistrySubKey[] = L"SOFTWARE\\Policies\\Google\\Chrome"; | 11 const wchar_t kRegistrySubKey[] = L"SOFTWARE\\Policies\\Google\\Chrome"; |
| 12 #else | 12 #else |
| 13 const wchar_t kRegistrySubKey[] = L"SOFTWARE\\Policies\\Chromium"; | 13 const wchar_t kRegistrySubKey[] = L"SOFTWARE\\Policies\\Chromium"; |
| 14 #endif | 14 #endif |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 namespace key { | 17 namespace key { |
| 18 | 18 |
| 19 const char kHomepageLocation[] = "HomepageLocation"; | 19 const char kHomepageLocation[] = "HomepageLocation"; |
| 20 const char kHomepageIsNewTabPage[] = "HomepageIsNewTabPage"; | 20 const char kHomepageIsNewTabPage[] = "HomepageIsNewTabPage"; |
| 21 const char kRestoreOnStartup[] = "RestoreOnStartup"; | 21 const char kRestoreOnStartup[] = "RestoreOnStartup"; |
| 22 const char kURLsToRestoreOnStartup[] = "RestoreOnStartupURLs"; | 22 const char kURLsToRestoreOnStartup[] = "RestoreOnStartupURLs"; |
| 23 const char kDefaultSearchProviderEnabled[] = "DefaultSearchProviderEnabled"; | 23 const char kDefaultSearchProviderEnabled[] = "DefaultSearchProviderEnabled"; |
| 24 const char kDefaultSearchProviderName[] = "DefaultSearchProviderName"; | 24 const char kDefaultSearchProviderName[] = "DefaultSearchProviderName"; |
| 25 const char kDefaultSearchProviderKeyword[] = "DefaultSearchProviderKeyword"; | 25 const char kDefaultSearchProviderKeyword[] = "DefaultSearchProviderKeyword"; |
| 26 const char kDefaultSearchProviderSearchURL[] = | 26 const char kDefaultSearchProviderSearchURL[] = |
| 27 "DefaultSearchProviderSearchURL"; | 27 "DefaultSearchProviderSearchURL"; |
| 28 const char kDefaultSearchProviderSuggestURL[] = | 28 const char kDefaultSearchProviderSuggestURL[] = |
| 29 "DefaultSearchProviderSuggestURL"; | 29 "DefaultSearchProviderSuggestURL"; |
| 30 const char kDefaultSearchProviderInstantURL[] = |
| 31 "DefaultSearchProviderInstantURL"; |
| 30 const char kDefaultSearchProviderIconURL[] = | 32 const char kDefaultSearchProviderIconURL[] = |
| 31 "DefaultSearchProviderIconURL"; | 33 "DefaultSearchProviderIconURL"; |
| 32 const char kDefaultSearchProviderEncodings[] = | 34 const char kDefaultSearchProviderEncodings[] = |
| 33 "DefaultSearchProviderEncodings"; | 35 "DefaultSearchProviderEncodings"; |
| 34 const char kDisableSpdy[] = "DisableSpdy"; | 36 const char kDisableSpdy[] = "DisableSpdy"; |
| 35 // We consider the name ProxyMode more apt than ProxyServerMode but could | 37 // We consider the name ProxyMode more apt than ProxyServerMode but could |
| 36 // not change it after publishing that name for the win registry and policy | 38 // not change it after publishing that name for the win registry and policy |
| 37 // config files. | 39 // config files. |
| 38 const char kProxyMode[] = "ProxyServerMode"; | 40 const char kProxyMode[] = "ProxyServerMode"; |
| 39 const char kProxyServer[] = "ProxyServer"; | 41 const char kProxyServer[] = "ProxyServer"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 const char kChromeFrameContentTypes[] = "ChromeFrameContentTypes"; | 85 const char kChromeFrameContentTypes[] = "ChromeFrameContentTypes"; |
| 84 | 86 |
| 85 #if defined(OS_CHROMEOS) | 87 #if defined(OS_CHROMEOS) |
| 86 // ChromeOS policy constants | 88 // ChromeOS policy constants |
| 87 const char kChromeOsLockOnIdleSuspend[] = "ChromeOsLockOnIdleSuspend"; | 89 const char kChromeOsLockOnIdleSuspend[] = "ChromeOsLockOnIdleSuspend"; |
| 88 #endif | 90 #endif |
| 89 | 91 |
| 90 } // namespace key | 92 } // namespace key |
| 91 | 93 |
| 92 } // namespace policy | 94 } // namespace policy |
| OLD | NEW |