diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 05:50:15 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 05:50:15 +0000 |
commit | 87690d99c17ae5b7dd1c1bd465d661d24aec72d3 (patch) | |
tree | d2843585feadff613380a6a51926e1ee2904b4a3 /remoting/base/constants.h | |
parent | 1c0b3147ef6a6b8b81bb9feb51237dba5319237d (diff) | |
download | chromium_src-87690d99c17ae5b7dd1c1bd465d661d24aec72d3.zip chromium_src-87690d99c17ae5b7dd1c1bd465d661d24aec72d3.tar.gz chromium_src-87690d99c17ae5b7dd1c1bd465d661d24aec72d3.tar.bz2 |
remoting: Fix invalid use of std::string used in the global scope.
We shouldn't declare global variables of class types, because they are forbidden by
the style guide. See http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Static_and_Global_Variables#Static_and_Global_Variables for futher information.
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/2873021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base/constants.h')
-rw-r--r-- | remoting/base/constants.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/remoting/base/constants.h b/remoting/base/constants.h index 6c2bb17..d124172 100644 --- a/remoting/base/constants.h +++ b/remoting/base/constants.h @@ -2,18 +2,16 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef REMOTING_BASE_CONSTANTS_H -#define REMOTING_BASE_CONSTANTS_H - -#include <string> +#ifndef REMOTING_BASE_CONSTANTS_H_ +#define REMOTING_BASE_CONSTANTS_H_ namespace remoting { -extern const std::string kChromotingBotJid; +extern const char kChromotingBotJid[]; // Service name used for authentication. -extern const std::string kChromotingTokenServiceName; +extern const char kChromotingTokenServiceName[]; } // namespace remoting -#endif // REMOTING_BASE_CONSTANTS_H +#endif // REMOTING_BASE_CONSTANTS_H_ |