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

Unified Diff: chrome/browser/ui/webui/options/handler_options_handler.cc

Issue 518673003: Add policy indicator for protocol handlers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes indicator to show recommendation correctly Created 6 years, 4 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/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..6f1b62adb22f3a01a7a02bd1b9d5d650ccdf0edf 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(
+ "registered_by_user",
bartfab (slow) 2014/09/01 14:56:44 Nit: It is hard to figure out what the exact seman
kaliamoorthi 2014/09/01 15:11:58 Done.
+ 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);

Powered by Google App Engine
This is Rietveld 408576698