Index: chrome/browser/ui/webui/options/handler_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/handler_options_handler.cc b/chrome/browser/ui/webui/options/handler_options_handler.cc |
index 79ba0274f32cc3981ef1a264e9c0c6fe2cb60925..a690d7fc4d17d7ab99df2a96471459ccae63dd9d 100644 |
--- a/chrome/browser/ui/webui/options/handler_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/handler_options_handler.cc |
@@ -109,6 +109,11 @@ void HandlerOptionsHandler::GetHandlersForProtocol( |
handlers_value->SetString("protocol", protocol); |
handlers_value->SetInteger("default_handler", |
registry->GetHandlerIndex(protocol)); |
+ handlers_value->SetBoolean( |
+ "is_default_handler_set_by_user", |
+ registry->IsRegisteredByUser(registry->GetHandlerFor(protocol))); |
+ handlers_value->SetBoolean("has_policy_recommendations", |
+ registry->HasPolicyRegisteredHandler(protocol)); |
base::ListValue* handlers_list = new base::ListValue(); |
GetHandlersAsListValue(registry->GetHandlersFor(protocol), handlers_list); |