New issue
Advanced search Search tips

Issue 922474 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 18
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug


Sign in to add a comment

Add API to replace AccountTrackerService::{SetIsChildAccount,SetIsAdvancedProtectionAccount}

Project Member Reported by sdefresne@chromium.org, Jan 16 (6 days ago)

Issue description

This should instead use a method from AccountsMutator:

  // Updates the information about account identified by |account_id|.
  bool AccountsMutator::UpdateAccountInfo(
      const std::string& account_id,
      ...);

The exact parameters passed to this method should be identified. They may be base::Optional<bool> or a tri-state enum (|unset|, |set_true|, |set_false|).


 

Comment 1 by sdefresne@chromium.org, Jan 16 (6 days ago)

Blocking: 922475

Comment 2 by sdefresne@chromium.org, Jan 16 (6 days ago)

Blocking: 922476

Comment 3 by blundell@chromium.org, Jan 16 (6 days ago)

Status: Available (was: Untriaged)

Comment 4 by dxie@google.com, Jan 16 (6 days ago)

Blocking: 922748

Comment 5 by dxie@google.com, Jan 16 (6 days ago)

Blocking: 922761

Comment 6 by dxie@google.com, Jan 16 (6 days ago)

Blocking: 922764

Comment 7 by dxie@google.com, Jan 17 (6 days ago)

Blocking: 922770

Comment 8 by dxie@google.com, Jan 17 (6 days ago)

Blocking: 922778

Comment 9 by dxie@google.com, Jan 17 (6 days ago)

Blocking: 922779

Comment 10 by ma...@igalia.com, Jan 17 (5 days ago)

Owner: ma...@igalia.com
Status: Started (was: Available)
Project Member

Comment 12 by bugdroid1@chromium.org, Jan 18 (4 days ago)

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/341c99a2593c16cb9b5c2039ece642b8c5b8f7cc

commit 341c99a2593c16cb9b5c2039ece642b8c5b8f7cc
Author: Mario Sanchez Prada <mario@igalia.com>
Date: Fri Jan 18 17:18:25 2019

Add API to replace ATS::{SetIsChildAccount,SetIsAdvancedProtectionAccount}

Add AccountsMutator::UpdateAccountInfo() to allow changing |is_child_account|
and/or |is_under_advanced_protection| for a given |account_id|, and provide
a new unit test to cover this new API.

Bug:  922474 
Change-Id: I6d549b50b0947964e111f38d0d504936779cbbb2
Reviewed-on: https://chromium-review.googlesource.com/c/1417174
Commit-Queue: Mario Sanchez Prada <mario@igalia.com>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#624173}
[modify] https://crrev.com/341c99a2593c16cb9b5c2039ece642b8c5b8f7cc/services/identity/public/cpp/accounts_mutator.h
[modify] https://crrev.com/341c99a2593c16cb9b5c2039ece642b8c5b8f7cc/services/identity/public/cpp/accounts_mutator_impl.cc
[modify] https://crrev.com/341c99a2593c16cb9b5c2039ece642b8c5b8f7cc/services/identity/public/cpp/accounts_mutator_impl.h
[modify] https://crrev.com/341c99a2593c16cb9b5c2039ece642b8c5b8f7cc/services/identity/public/cpp/accounts_mutator_unittest.cc

Comment 13 by ma...@igalia.com, Jan 18 (4 days ago)

Status: Fixed (was: Started)

Sign in to add a comment