| Index: dbus/util.h
|
| diff --git a/dbus/util.h b/dbus/util.h
|
| index b983b6fdb86e43101e2d50fd79e736073a07bab4..b05834ddd6b3e5e34944a5c506aec0bc63f68010 100644
|
| --- a/dbus/util.h
|
| +++ b/dbus/util.h
|
| @@ -23,6 +23,13 @@ CHROME_DBUS_EXPORT std::string GetAbsoluteMemberName(
|
| const std::string& interface_name,
|
| const std::string& member_name);
|
|
|
| +// Similar to base::DeletePointer, but takes void* as an argument.
|
| +// Used as DBusFreeFunction.
|
| +template<typename T>
|
| +void DeleteVoidPointer(void* memory) {
|
| + delete static_cast<T*>(memory);
|
| +}
|
| +
|
| } // namespace dbus
|
|
|
| #endif // DBUS_UTIL_H_
|
|
|