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

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

Issue 493613002: Add an enrolling state for consumer management section in settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dn
Patch Set: Fixed broken browser tests. Created 6 years, 3 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/options/browser_options_handler.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc b/chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc
index 6c7dcbdc8e7d51437a2efacaec4cb3fc7bc2805a..26423f5d727820a3609138a37f69d73078d94b1e 100644
--- a/chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc
@@ -64,7 +64,6 @@ void ConsumerManagementHandler::GetLocalizedValues(
}
void ConsumerManagementHandler::RegisterMessages() {
- // Callback to show keyboard overlay.
web_ui()->RegisterMessageCallback(
"enrollConsumerManagement",
base::Bind(&ConsumerManagementHandler::HandleEnrollConsumerManagement,
@@ -84,8 +83,8 @@ void ConsumerManagementHandler::HandleEnrollConsumerManagement(
}
CHECK(management_service_);
- management_service_->SetEnrollmentState(
- policy::ConsumerManagementService::ENROLLMENT_REQUESTED);
+ management_service_->SetEnrollmentStage(
+ policy::ConsumerManagementService::ENROLLMENT_STAGE_REQUESTED);
chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart();
}
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698