Index: chrome/browser/webdata/web_apps_table.cc |
diff --git a/chrome/browser/webdata/web_apps_table.cc b/chrome/browser/webdata/web_apps_table.cc |
index 3ac087cc0a761c3f2da38e1f317308a5c303bd32..ac1e30549f809b4221534846afc4dd135cd886ef 100644 |
--- a/chrome/browser/webdata/web_apps_table.cc |
+++ b/chrome/browser/webdata/web_apps_table.cc |
@@ -14,9 +14,10 @@ |
namespace { |
-int table_key = 0; |
- |
WebDatabaseTable::TypeKey GetKey() { |
+ // We just need a unique constant. Use the address of a static that |
+ // COMDAT folding won't touch in an optimizing linker. |
+ static int table_key = 0; |
return reinterpret_cast<void*>(&table_key); |
} |