| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 ? "Not Signed In" | 362 ? "Not Signed In" |
| 363 : "Signed In"; | 363 : "Signed In"; |
| 364 AddSectionEntry(basic_info, "Chrome Version", product_version); | 364 AddSectionEntry(basic_info, "Chrome Version", product_version); |
| 365 AddSectionEntry(basic_info, "Signin Status", signin_status_string); | 365 AddSectionEntry(basic_info, "Signin Status", signin_status_string); |
| 366 AddSectionEntry(basic_info, "Web Based Signin Enabled?", | 366 AddSectionEntry(basic_info, "Web Based Signin Enabled?", |
| 367 switches::IsEnableWebBasedSignin() == true ? "True" : "False"); | 367 switches::IsEnableWebBasedSignin() == true ? "True" : "False"); |
| 368 AddSectionEntry(basic_info, "New Profile Management Enabled?", | 368 AddSectionEntry(basic_info, "New Profile Management Enabled?", |
| 369 switches::IsNewProfileManagement() == true ? "True" : "False"); | 369 switches::IsNewProfileManagement() == true ? "True" : "False"); |
| 370 AddSectionEntry(basic_info, "New Avatar Menu Enabled?", | 370 AddSectionEntry(basic_info, "New Avatar Menu Enabled?", |
| 371 switches::IsNewAvatarMenu() == true ? "True" : "False"); | 371 switches::IsNewAvatarMenu() == true ? "True" : "False"); |
| 372 bool new_avatar_menu_flag = | 372 bool old_avatar_menu_flag = |
| 373 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu); | 373 CommandLine::ForCurrentProcess()->HasSwitch( |
| 374 AddSectionEntry(basic_info, "New Avatar Menu Flag Set?", | 374 switches::kDisableNewAvatarMenu); |
| 375 new_avatar_menu_flag ? "True" : "False"); | 375 AddSectionEntry(basic_info, "Disable Avatar Menu?", |
| 376 old_avatar_menu_flag ? "Disabled" : "Flag Not Set"); |
| 376 AddSectionEntry(basic_info, "Account Consistency Enabled?", | 377 AddSectionEntry(basic_info, "Account Consistency Enabled?", |
| 377 switches::IsEnableAccountConsistency() == true ? "True" : "False"); | 378 switches::IsEnableAccountConsistency() == true ? "True" : "False"); |
| 378 | 379 |
| 379 // Only add username. SID and LSID have moved to tokens section. | 380 // Only add username. SID and LSID have moved to tokens section. |
| 380 const std::string field = | 381 const std::string field = |
| 381 SigninStatusFieldToLabel(static_cast<UntimedSigninStatusField>(USERNAME)); | 382 SigninStatusFieldToLabel(static_cast<UntimedSigninStatusField>(USERNAME)); |
| 382 AddSectionEntry(basic_info, | 383 AddSectionEntry(basic_info, |
| 383 field, | 384 field, |
| 384 untimed_signin_fields[USERNAME - UNTIMED_FIELDS_BEGIN]); | 385 untimed_signin_fields[USERNAME - UNTIMED_FIELDS_BEGIN]); |
| 385 | 386 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 409 std::sort(it->second.begin(), it->second.end(), TokenInfo::LessThan); | 410 std::sort(it->second.begin(), it->second.end(), TokenInfo::LessThan); |
| 410 const std::vector<TokenInfo*>& tokens = it->second; | 411 const std::vector<TokenInfo*>& tokens = it->second; |
| 411 for (size_t i = 0; i < tokens.size(); ++i) { | 412 for (size_t i = 0; i < tokens.size(); ++i) { |
| 412 base::DictionaryValue* token_info = tokens[i]->ToValue(); | 413 base::DictionaryValue* token_info = tokens[i]->ToValue(); |
| 413 token_details->Append(token_info); | 414 token_details->Append(token_info); |
| 414 } | 415 } |
| 415 } | 416 } |
| 416 | 417 |
| 417 return signin_status.Pass(); | 418 return signin_status.Pass(); |
| 418 } | 419 } |
| OLD | NEW |