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

Side by Side Diff: chrome/browser/ui/webui/history_login_handler.cc

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/history_login_handler.h" 5 #include "chrome/browser/ui/webui/history_login_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 14 matching lines...) Expand all
25 base::Unretained(this))); 25 base::Unretained(this)));
26 } 26 }
27 27
28 void HistoryLoginHandler::HandleOtherDevicesInitialized( 28 void HistoryLoginHandler::HandleOtherDevicesInitialized(
29 const base::ListValue* /*args*/) { 29 const base::ListValue* /*args*/) {
30 ProfileInfoChanged(); 30 ProfileInfoChanged();
31 } 31 }
32 32
33 void HistoryLoginHandler::ProfileInfoChanged() { 33 void HistoryLoginHandler::ProfileInfoChanged() {
34 bool signed_in = !profile_info_watcher_->GetAuthenticatedUsername().empty(); 34 bool signed_in = !profile_info_watcher_->GetAuthenticatedUsername().empty();
35 web_ui()->CallJavascriptFunction( 35 web_ui()->CallJavascriptFunctionUnsafe("updateSignInState",
36 "updateSignInState", base::FundamentalValue(signed_in)); 36 base::FundamentalValue(signed_in));
37 } 37 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/help/help_handler.cc ('k') | chrome/browser/ui/webui/identity_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698