diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-28 14:57:54 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-28 14:57:54 +0000 |
commit | 5a4c4bb277e9673fd17f1262c5fcbed747c534f4 (patch) | |
tree | a92ed90766459dbf88501475565987e526fde1b6 /chrome/browser/configuration_policy_provider_win.cc | |
parent | 4e0616edf0c949858b67859b6f27a0c573425988 (diff) | |
download | chromium_src-5a4c4bb277e9673fd17f1262c5fcbed747c534f4.zip chromium_src-5a4c4bb277e9673fd17f1262c5fcbed747c534f4.tar.gz chromium_src-5a4c4bb277e9673fd17f1262c5fcbed747c534f4.tar.bz2 |
Rename class to comply with style guide. Tweak comments for grammar and correctness.
BUG=none
TEST=n/a
Review URL: http://codereview.chromium.org/2273003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48485 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/configuration_policy_provider_win.cc')
-rwxr-xr-x | chrome/browser/configuration_policy_provider_win.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/chrome/browser/configuration_policy_provider_win.cc b/chrome/browser/configuration_policy_provider_win.cc index f64ea63..f81758f6 100755 --- a/chrome/browser/configuration_policy_provider_win.cc +++ b/chrome/browser/configuration_policy_provider_win.cc @@ -12,25 +12,25 @@ #include "base/sys_string_conversions.h" #include "base/values.h" -const wchar_t WinConfigurationPolicyProvider::kHomepageRegistryValueName[] = +const wchar_t ConfigurationPolicyProviderWin::kHomepageRegistryValueName[] = L"Homepage"; -const wchar_t WinConfigurationPolicyProvider:: +const wchar_t ConfigurationPolicyProviderWin:: kHomepageIsNewTabPageRegistryValueName[] = L"HomepageIsNewTabPage"; -const wchar_t WinConfigurationPolicyProvider::kCookiesModeRegistryValueName[] = +const wchar_t ConfigurationPolicyProviderWin::kCookiesModeRegistryValueName[] = L"CookiesMode"; #if defined(GOOGLE_CHROME_BUILD) -const wchar_t WinConfigurationPolicyProvider::kPolicyRegistrySubKey[] = +const wchar_t ConfigurationPolicyProviderWin::kPolicyRegistrySubKey[] = L"SOFTWARE\\Policies\\Google\\Google Chrome"; #else -const wchar_t WinConfigurationPolicyProvider::kPolicyRegistrySubKey[] = +const wchar_t ConfigurationPolicyProviderWin::kPolicyRegistrySubKey[] = L"SOFTWARE\\Policies\\Chromium"; #endif -WinConfigurationPolicyProvider::WinConfigurationPolicyProvider() { +ConfigurationPolicyProviderWin::ConfigurationPolicyProviderWin() { } -bool WinConfigurationPolicyProvider::GetRegistryPolicyString( +bool ConfigurationPolicyProviderWin::GetRegistryPolicyString( const wchar_t* value_name, string16* result) { DWORD value_size = 0; DWORD key_type = 0; @@ -67,7 +67,7 @@ bool WinConfigurationPolicyProvider::GetRegistryPolicyString( return true; } -bool WinConfigurationPolicyProvider::GetRegistryPolicyBoolean( +bool ConfigurationPolicyProviderWin::GetRegistryPolicyBoolean( const wchar_t* value_name, bool* result) { DWORD value; RegKey hkcu_policy_key(HKEY_LOCAL_MACHINE, kPolicyRegistrySubKey); @@ -84,7 +84,7 @@ bool WinConfigurationPolicyProvider::GetRegistryPolicyBoolean( return false; } -bool WinConfigurationPolicyProvider::GetRegistryPolicyInteger( +bool ConfigurationPolicyProviderWin::GetRegistryPolicyInteger( const wchar_t* value_name, uint32* result) { DWORD value; RegKey hkcu_policy_key(HKEY_LOCAL_MACHINE, kPolicyRegistrySubKey); @@ -101,8 +101,8 @@ bool WinConfigurationPolicyProvider::GetRegistryPolicyInteger( return false; } -const WinConfigurationPolicyProvider::RegistryPolicyMapEntry - WinConfigurationPolicyProvider::registry_to_policy_map_[] = { +const ConfigurationPolicyProviderWin::RegistryPolicyMapEntry + ConfigurationPolicyProviderWin::registry_to_policy_map_[] = { { Value::TYPE_STRING, ConfigurationPolicyStore::kPolicyHomePage, kHomepageRegistryValueName }, @@ -114,7 +114,7 @@ const WinConfigurationPolicyProvider::RegistryPolicyMapEntry kCookiesModeRegistryValueName }, }; -bool WinConfigurationPolicyProvider::Provide( +bool ConfigurationPolicyProviderWin::Provide( ConfigurationPolicyStore* store) { const RegistryPolicyMapEntry* current; const RegistryPolicyMapEntry* end = registry_to_policy_map_ + |