Index: webkit/support/platform_support_linux.cc |
diff --git a/webkit/support/platform_support_linux.cc b/webkit/support/platform_support_linux.cc |
index b31595830a8c31cc46cd9f94957a5671e21685b6..ab0f1c0223e36b5ba98e79317676141ddbeca4d5 100644 |
--- a/webkit/support/platform_support_linux.cc |
+++ b/webkit/support/platform_support_linux.cc |
@@ -52,7 +52,7 @@ base::StringPiece GetDataResource(int resource_id) { |
resources_path = resources_path.Append("DumpRenderTree_resources"); |
switch (resource_id) { |
case IDR_BROKENIMAGE: { |
- static std::string broken_image_data; |
+ CR_DEFINE_STATIC_LOCAL(std::string, broken_image_data, ()); |
if (broken_image_data.empty()) { |
FilePath path = resources_path.Append("missingImage.gif"); |
bool success = file_util::ReadFileToString(path, &broken_image_data); |
@@ -62,7 +62,7 @@ base::StringPiece GetDataResource(int resource_id) { |
return broken_image_data; |
} |
case IDR_TEXTAREA_RESIZER: { |
- static std::string resize_corner_data; |
+ CR_DEFINE_STATIC_LOCAL(std::string, resize_corner_data, ()); |
if (resize_corner_data.empty()) { |
FilePath path = resources_path.Append("textAreaResizeCorner.png"); |
bool success = file_util::ReadFileToString(path, &resize_corner_data); |