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

Unified Diff: chrome/browser/ui/webui/settings/profile_info_handler.cc

Issue 1988463002: MD Settings: Convert C++ handlers to be JavaScript-lifecycle aware. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/settings/profile_info_handler.cc
diff --git a/chrome/browser/ui/webui/settings/profile_info_handler.cc b/chrome/browser/ui/webui/settings/profile_info_handler.cc
index c3b0de8a66be9a35e9db36343d7b9fe818ce9030..b58c20fcbf525d8a9850d114406419a1734fbf67 100644
--- a/chrome/browser/ui/webui/settings/profile_info_handler.cc
+++ b/chrome/browser/ui/webui/settings/profile_info_handler.cc
@@ -98,10 +98,9 @@ void ProfileInfoHandler::HandleGetProfileInfo(const base::ListValue* args) {
}
void ProfileInfoHandler::PushProfileInfo() {
- web_ui()->CallJavascriptFunction(
- "cr.webUIListenerCallback",
- base::StringValue(kProfileInfoChangedEventName),
- *GetAccountNameAndIcon());
+ CallJavascriptFunction("cr.webUIListenerCallback",
+ base::StringValue(kProfileInfoChangedEventName),
+ *GetAccountNameAndIcon());
}
std::unique_ptr<base::DictionaryValue>

Powered by Google App Engine
This is Rietveld 408576698