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

Unified Diff: chrome/browser/ui/webui/options/chromeos/about_page_handler.cc

Issue 9668001: Add a new policy to allow for release channel delegation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ToT rebase. Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/webui/help/help_handler.cc ('k') | chrome/test/functional/policy_test_cases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/about_page_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/about_page_handler.cc b/chrome/browser/ui/webui/options/chromeos/about_page_handler.cc
index dccab7079883b5d6032bf71a8e22227220efeca0..64daba93e498aa57aaf75d642dbde81352a244e8 100644
--- a/chrome/browser/ui/webui/options/chromeos/about_page_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/about_page_handler.cc
@@ -54,8 +54,6 @@ const char kEndLinkOss[] = "END_LINK_OSS";
const char kBeginLinkCrosOss[] = "BEGIN_LINK_CROS_OSS";
const char kEndLinkCrosOss[] = "END_LINK_CROS_OSS";
-const char kDomainChangable[] = "domain";
-
// Returns a substring [start, end) from |text|.
std::string StringSubRange(const std::string& text, size_t start,
size_t end) {
@@ -71,9 +69,9 @@ bool CanChangeReleaseChannel() {
// On a managed machine we delegate this setting to the users of the same
// domain only if the policy value is "domain".
if (g_browser_process->browser_policy_connector()->IsEnterpriseManaged()) {
- std::string value;
- chromeos::CrosSettings::Get()->GetString(chromeos::kReleaseChannel, &value);
- if (value != kDomainChangable)
+ bool value = false;
+ if (!chromeos::CrosSettings::Get()->GetBoolean(
+ chromeos::kReleaseChannelDelegated, &value) || !value)
return false;
// Get the currently logged in user and strip the domain part only.
std::string domain = "";
« no previous file with comments | « chrome/browser/ui/webui/help/help_handler.cc ('k') | chrome/test/functional/policy_test_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698