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

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

Issue 279243002: Cleanup browser_options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 147df63dd942c69af305989ff45d4b66122c0c33..abbd4f93f98fa13c0258f75011b1d28a456239b6 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -1325,18 +1325,14 @@ scoped_ptr<base::DictionaryValue>
BrowserOptionsHandler::GetSyncStateDictionary() {
scoped_ptr<base::DictionaryValue> sync_status(new base::DictionaryValue);
Profile* profile = Profile::FromWebUI(web_ui());
- if (profile->IsManaged()) {
- sync_status->SetBoolean("supervisedUser", true);
- sync_status->SetBoolean("signinAllowed", false);
- return sync_status.Pass();
- }
if (profile->IsGuestSession()) {
// Cannot display signin status when running in guest mode on chromeos
// because there is no SigninManager.
sync_status->SetBoolean("signinAllowed", false);
return sync_status.Pass();
}
- sync_status->SetBoolean("supervisedUser", false);
+
+ sync_status->SetBoolean("supervisedUser", profile->IsManaged());
bool signout_prohibited = false;
#if !defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698