| Index: chrome/browser/ui/webui/options/website_settings_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/website_settings_handler.cc b/chrome/browser/ui/webui/options/website_settings_handler.cc
|
| index f946b120764f91361dbd1e9572716f935c39b766..587616412cdd4573f910b3f2eadb7556199158b2 100644
|
| --- a/chrome/browser/ui/webui/options/website_settings_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/website_settings_handler.cc
|
| @@ -683,10 +683,16 @@ void WebsiteSettingsHandler::UpdateBatteryUsage() {
|
|
|
| base::DictionaryValue* origin_entry = new base::DictionaryValue();
|
| origin_entry->SetInteger("usage", it->second);
|
| - origin_entry->SetString(
|
| - "usageString",
|
| - l10n_util::GetStringFUTF16Int(IDS_WEBSITE_SETTINGS_BATTERY_PERCENT,
|
| - it->second));
|
| + if (it->second == 0) {
|
| + origin_entry->SetString(
|
| + "usageString",
|
| + l10n_util::GetStringUTF16(IDS_WEBSITE_SETTINGS_BATTERY_ZERO_PERCENT));
|
| + } else {
|
| + origin_entry->SetString(
|
| + "usageString",
|
| + l10n_util::GetStringFUTF16Int(IDS_WEBSITE_SETTINGS_BATTERY_PERCENT,
|
| + it->second));
|
| + }
|
| origin_entry->SetStringWithoutPathExpansion("readableName",
|
| GetReadableName(it->first));
|
| power_map.SetWithoutPathExpansion(origin, origin_entry);
|
|
|