OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/signin/core/browser/about_signin_internals.h" | 5 #include "components/signin/core/browser/about_signin_internals.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/hash.h" | 9 #include "base/hash.h" |
10 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 AddSectionEntry(basic_info, "Web Based Signin Enabled?", | 355 AddSectionEntry(basic_info, "Web Based Signin Enabled?", |
356 switches::IsEnableWebBasedSignin() == true ? "True" : "False"); | 356 switches::IsEnableWebBasedSignin() == true ? "True" : "False"); |
357 AddSectionEntry(basic_info, "New Profile Management Enabled?", | 357 AddSectionEntry(basic_info, "New Profile Management Enabled?", |
358 switches::IsNewProfileManagement() == true ? "True" : "False"); | 358 switches::IsNewProfileManagement() == true ? "True" : "False"); |
359 AddSectionEntry(basic_info, "New Avatar Menu Enabled?", | 359 AddSectionEntry(basic_info, "New Avatar Menu Enabled?", |
360 switches::IsNewAvatarMenu() == true ? "True" : "False"); | 360 switches::IsNewAvatarMenu() == true ? "True" : "False"); |
361 bool new_avatar_menu_flag = | 361 bool new_avatar_menu_flag = |
362 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu); | 362 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu); |
363 AddSectionEntry(basic_info, "New Avatar Menu Flag Set?", | 363 AddSectionEntry(basic_info, "New Avatar Menu Flag Set?", |
364 new_avatar_menu_flag ? "True" : "False"); | 364 new_avatar_menu_flag ? "True" : "False"); |
| 365 AddSectionEntry(basic_info, "Account Consistency Enabled?", |
| 366 switches::IsEnableAccountConsistency() == true ? "True" : "False"); |
365 | 367 |
366 // Only add username. SID and LSID have moved to tokens section. | 368 // Only add username. SID and LSID have moved to tokens section. |
367 const std::string field = | 369 const std::string field = |
368 SigninStatusFieldToLabel(static_cast<UntimedSigninStatusField>(USERNAME)); | 370 SigninStatusFieldToLabel(static_cast<UntimedSigninStatusField>(USERNAME)); |
369 AddSectionEntry(basic_info, | 371 AddSectionEntry(basic_info, |
370 field, | 372 field, |
371 untimed_signin_fields[USERNAME - UNTIMED_FIELDS_BEGIN]); | 373 untimed_signin_fields[USERNAME - UNTIMED_FIELDS_BEGIN]); |
372 | 374 |
373 // Time and status information of the possible sign in types. | 375 // Time and status information of the possible sign in types. |
374 base::ListValue* detailed_info = | 376 base::ListValue* detailed_info = |
(...skipping 19 matching lines...) Expand all Loading... |
394 std::sort(it->second.begin(), it->second.end(), TokenInfo::LessThan); | 396 std::sort(it->second.begin(), it->second.end(), TokenInfo::LessThan); |
395 const std::vector<TokenInfo*>& tokens = it->second; | 397 const std::vector<TokenInfo*>& tokens = it->second; |
396 for (size_t i = 0; i < tokens.size(); ++i) { | 398 for (size_t i = 0; i < tokens.size(); ++i) { |
397 base::DictionaryValue* token_info = tokens[i]->ToValue(); | 399 base::DictionaryValue* token_info = tokens[i]->ToValue(); |
398 token_details->Append(token_info); | 400 token_details->Append(token_info); |
399 } | 401 } |
400 } | 402 } |
401 | 403 |
402 return signin_status.Pass(); | 404 return signin_status.Pass(); |
403 } | 405 } |
OLD | NEW |