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

Side by Side Diff: components/signin/core/browser/about_signin_internals.cc

Issue 340773004: Display on signin-internals the status of account consistency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698