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

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

Issue 11189088: Add controlled setting indicator for default search engine configuration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/search_engine_manager_handler.cc
diff --git a/chrome/browser/ui/webui/options/search_engine_manager_handler.cc b/chrome/browser/ui/webui/options/search_engine_manager_handler.cc
index 8821d61fc109b32e6936e0238e3812d90162bf5e..7b65349fab2d310af96f1c3bb1b49b6ef3ca87a2 100644
--- a/chrome/browser/ui/webui/options/search_engine_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/search_engine_manager_handler.cc
@@ -199,8 +199,11 @@ base::DictionaryValue* SearchEngineManagerHandler::CreateDictionaryForEngine(
dict->SetString("canBeRemoved", "1");
if (list_controller_->CanMakeDefault(template_url))
dict->SetString("canBeDefault", "1");
- if (is_default)
+ if (is_default) {
dict->SetString("default", "1");
+ if (list_controller_->url_model()->is_default_search_managed())
+ dict->SetString("controlledBy", "policy");
Joao da Silva 2012/10/19 12:21:21 Isn't this the same signal as !CanEdit()? If so th
bartfab (slow) 2012/10/19 12:40:27 Good catch. Done.
+ }
if (list_controller_->CanEdit(template_url))
dict->SetString("canBeEdited", "1");
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.cc ('k') | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698