Index: chrome/browser/webdata/logins_table.cc |
diff --git a/chrome/browser/webdata/logins_table.cc b/chrome/browser/webdata/logins_table.cc |
index 2edc60f482d32770469a18aeef58ca25072f9c1e..cfb24ab79710fe63b9875649cf800c621b296a46 100644 |
--- a/chrome/browser/webdata/logins_table.cc |
+++ b/chrome/browser/webdata/logins_table.cc |
@@ -12,9 +12,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); |
} |