Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: chrome/browser/ui/webui/settings/site_settings_handler.cc

Issue 1758013002: WebUI: Allow rejecting a promise that is returned from cr.sendWithPromise(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/settings/site_settings_handler.cc
diff --git a/chrome/browser/ui/webui/settings/site_settings_handler.cc b/chrome/browser/ui/webui/settings/site_settings_handler.cc
index 1d03e27e947c0199f6ba30e17d7e2aeb89faacea..144f281234ffdb0cfaf82c9f9ccce4d855631d45 100644
--- a/chrome/browser/ui/webui/settings/site_settings_handler.cc
+++ b/chrome/browser/ui/webui/settings/site_settings_handler.cc
@@ -145,7 +145,7 @@ void SiteSettingsHandler::HandleGetDefaultValueForContentType(
else
enabled = setting != CONTENT_SETTING_BLOCK;
- CallJavascriptCallback(*callback_id, base::FundamentalValue(enabled));
+ CallJavascriptCallback(*callback_id, true, base::FundamentalValue(enabled));
}
} // namespace settings

Powered by Google App Engine
This is Rietveld 408576698