diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 02:26:37 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 02:26:37 +0000 |
commit | 968d2c518c9073e24ef3724886427481e68ae3e7 (patch) | |
tree | 371cd9ebde8b59cd6966ed42868c83672f8f9ec7 /chrome/common/chrome_plugin_lib.cc | |
parent | 958fcc78b62c9a2afdfeaf8730658d18fe3cca70 (diff) | |
download | chromium_src-968d2c518c9073e24ef3724886427481e68ae3e7.zip chromium_src-968d2c518c9073e24ef3724886427481e68ae3e7.tar.gz chromium_src-968d2c518c9073e24ef3724886427481e68ae3e7.tar.bz2 |
Cleanup our Registry API.
- Use wchar_t instead of TCHAR.
- Use DCHECK instead of assert.
- Remove this keyword (we don't use it on chromium).
- Add DISALLOW_COPY_AND_ASSIGN to the classes.
- Make it more compliant with chromium code style.
- Remove ununsed methods.
- Use arraysize macro for array size calculation instead of doing it manually.
BUG=44644
TEST=trybots
TODO: Write unittests for this API.
TODO: Remove all the default arguments from the methods in this API. They aren't allowed by our style guide.
Review URL: http://codereview.chromium.org/3007037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55375 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_plugin_lib.cc')
-rw-r--r-- | chrome/common/chrome_plugin_lib.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/chrome_plugin_lib.cc b/chrome/common/chrome_plugin_lib.cc index daf6bb7..1e74f4c 100644 --- a/chrome/common/chrome_plugin_lib.cc +++ b/chrome/common/chrome_plugin_lib.cc @@ -25,10 +25,10 @@ using base::TimeDelta; // TODO(port): revisit when plugins happier #if defined(OS_WIN) -const TCHAR ChromePluginLib::kRegistryChromePlugins[] = - _T("Software\\Google\\Chrome\\Plugins"); -static const TCHAR kRegistryLoadOnStartup[] = _T("LoadOnStartup"); -static const TCHAR kRegistryPath[] = _T("Path"); +const wchar_t ChromePluginLib::kRegistryChromePlugins[] = + L"Software\\Google\\Chrome\\Plugins"; +static const wchar_t kRegistryLoadOnStartup[] = L"LoadOnStartup"; +static const wchar_t kRegistryPath[] = L"Path"; #endif typedef base::hash_map<FilePath, scoped_refptr<ChromePluginLib> > |