summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_manifests_unittest.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 21:37:01 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 21:37:01 +0000
commit173ca873f69c128c933310b962972082bb6068e1 (patch)
treef02d845524da4e45774b8a0d31c7072581cb73fe /chrome/common/extensions/extension_manifests_unittest.cc
parent5026491dc760085cb5471e605459f86bdd978e25 (diff)
downloadchromium_src-173ca873f69c128c933310b962972082bb6068e1.zip
chromium_src-173ca873f69c128c933310b962972082bb6068e1.tar.gz
chromium_src-173ca873f69c128c933310b962972082bb6068e1.tar.bz2
Remove potentially many static initializers.
|const char* kFoo| marks the memory pointed to by kFoo as constant, but the pointer itself can be changed - some function might do `kFoo = "me!";`. Because of that, every global that's initialized with `myglobal = kFoo;` needs a static initializer. Fix this by making the pointer const as well. BUG=94925 TEST=none Review URL: http://codereview.chromium.org/8693005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111559 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_manifests_unittest.cc')
-rw-r--r--chrome/common/extensions/extension_manifests_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/extensions/extension_manifests_unittest.cc b/chrome/common/extensions/extension_manifests_unittest.cc
index 4eac813..cd3f5f5 100644
--- a/chrome/common/extensions/extension_manifests_unittest.cc
+++ b/chrome/common/extensions/extension_manifests_unittest.cc
@@ -933,7 +933,7 @@ TEST_F(ExtensionManifestTest, FileManagerURLOverride) {
#if defined(FILE_MANAGER_EXTENSION)
EXPECT_EQ("", error);
#else
- EXPECT_EQ(errors::kInvalidChromeURLOverrides, error);
+ EXPECT_EQ(std::string(errors::kInvalidChromeURLOverrides), error);
#endif
// Extensions of other types can't ovverride chrome://files/ URL.