| Index: chrome/browser/chromeos/dbus/power_manager_client.cc
|
| diff --git a/chrome/browser/chromeos/dbus/power_manager_client.cc b/chrome/browser/chromeos/dbus/power_manager_client.cc
|
| index 3c55a678d27a57c37e8eec518f77df46ed4625fc..00384b01fdedd76e033fb3f9295d8a935ce1fd76 100644
|
| --- a/chrome/browser/chromeos/dbus/power_manager_client.cc
|
| +++ b/chrome/browser/chromeos/dbus/power_manager_client.cc
|
| @@ -32,7 +32,9 @@ PowerSupplyStatus::PowerSupplyStatus()
|
| }
|
|
|
| const std::string& PowerSupplyStatus::ToString() const {
|
| - static std::string result = "";
|
| + // TODO(thakis): This looks weird. This should probably not be static, and
|
| + // the function should just return a string by value.
|
| + CR_DEFINE_STATIC_LOCAL(std::string, result, ());
|
| base::StringAppendF(&result,
|
| "line_power_on = %s ",
|
| line_power_on ? "true" : "false");
|
|
|