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

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

Issue 339023003: Make 'Disconnect from google account' dialog box shows correct message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version 0 Created 6 years, 6 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/manage_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.cc b/chrome/browser/ui/webui/options/manage_profile_handler.cc
index 61e1e4d5bd660175cc540a909bb80945f870047f..a2ece94dcfbcd34d470897dc52cfe7c3db574f5a 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc
@@ -185,6 +185,10 @@ void ManageProfileHandler::RegisterMessages() {
web_ui()->RegisterMessageCallback("refreshGaiaPicture",
base::Bind(&ManageProfileHandler::RefreshGaiaPicture,
base::Unretained(this)));
+ web_ui()->RegisterMessageCallback(
+ "showDisconnectManagedProfileDialog",
+ base::Bind(&ManageProfileHandler::ShowDisconnectManagedProfileDialog,
+ base::Unretained(this)));
}
void ManageProfileHandler::Uninitialize() {
@@ -313,6 +317,14 @@ void ManageProfileHandler::SendExistingProfileNames() {
"ManageProfileOverlay.receiveExistingProfileNames", profile_name_dict);
}
+void ManageProfileHandler::ShowDisconnectManagedProfileDialog(
+ const base::ListValue* args) {
+ base::DictionaryValue replacements;
+ GenerateSignedinUserSpecificStrings(&replacements);
+ web_ui()->CallJavascriptFunction(
+ "ManageProfileOverlay.showDisconnectManagedProfileDialog", replacements);
+}
+
void ManageProfileHandler::SetProfileIconAndName(const base::ListValue* args) {
DCHECK(args);
@@ -468,10 +480,6 @@ void ManageProfileHandler::RequestCreateProfileUpdate(
base::StringValue(username),
base::FundamentalValue(has_error));
- base::DictionaryValue replacements;
- GenerateSignedinUserSpecificStrings(&replacements);
- web_ui()->CallJavascriptFunction("loadTimeData.overrideValues", replacements);
-
OnCreateSupervisedUserPrefChange();
}
« no previous file with comments | « chrome/browser/ui/webui/options/manage_profile_handler.h ('k') | chrome/browser/ui/webui/options/options_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698