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

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

Issue 2614883004: [MD Settings] Fixes the crash when navigating directly to chrome://md-settings/signOut (Closed)
Patch Set: fixed cros tests Created 3 years, 11 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 4ce53d7c5d77f6fea4e555f9519bf2d89cf6eb7a..48bfbed68c44ac7f0ba73766821c01785ed372a2 100644
--- a/chrome/browser/ui/webui/settings/profile_info_handler.cc
+++ b/chrome/browser/ui/webui/settings/profile_info_handler.cc
@@ -126,6 +126,8 @@ void ProfileInfoHandler::HandleGetProfileInfo(const base::ListValue* args) {
#if !defined(OS_CHROMEOS)
void ProfileInfoHandler::HandleGetProfileStats(const base::ListValue* args) {
+ AllowJavascript();
+
// Because there is open browser window for the current profile, statistics
// from the ProfileAttributesStorage may not be up-to-date or may be missing
// (e.g., |item.success| is false). Therefore, query the actual statistics.
« no previous file with comments | « chrome/browser/resources/settings/people_page/people_page.js ('k') | chrome/test/data/webui/settings/people_page_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698