New issue
Advanced search Search tips

Issue 903857 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 14
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocked on:
issue 907540

Blocking:
issue 883318
issue 883330



Sign in to add a comment

Convert chrome/browser/ui/webui/print_preview/print_preview_handler.cc to IdentityManager

Project Member Reported by ma...@igalia.com, Nov 9

Issue description

APIs used:
  - GetAuthenticatedAccountId()

Also, PrintPreviewHandler::AccessTokenService implements OAuth2TokenService::Consumer, so that's probably a good candidate to migrate
 
Description: Show this description
Owner: ma...@igalia.com
Owner: ----
Blocking: 883330 883318
Labels: -Pri-3 Pri-1
Status: Available (was: Untriaged)
Cc: sdefresne@chromium.org
I guess this block makes the migration slightly harder:

(...)
    } else if (type == "device") {
#if defined(OS_CHROMEOS)
      chromeos::DeviceOAuth2TokenService* token_service =
          chromeos::DeviceOAuth2TokenServiceFactory::Get();
      account_id = token_service->GetRobotAccountId();
      service = token_service;
#endif


Sylvain, Colin: WDYT?
Blockedon: 907540
Yes, absolutely! I made a bug to block this. I'll need to create a solution for this use case first.
This bug is free to take now; see the solution in the blocking bug.
Owner: hferre...@igalia.com
Status: Started (was: Available)
Project Member

Comment 10 by bugdroid1@chromium.org, Jan 12

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

commit 7b5ce1f5f57a8a402f5586e8275f4469cc24e184
Author: Henrique Ferreiro <hferreiro@igalia.com>
Date: Sat Jan 12 07:55:04 2019

Convert print_preview_handler.cc to IdentityManager

ProfileOAuth2TokenService is replaced with
PrimaryAccountAccessTokenFetcher. DeviceOAuth2TokenService is kept and
its usage inlined as per the discussion in  https://crbug.com/907540 .

Bug:  903857 
Change-Id: Id242fd6885ca513bba557fabb2d2bfd7bda46511
Reviewed-on: https://chromium-review.googlesource.com/c/1402797
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Cr-Commit-Position: refs/heads/master@{#622297}
[modify] https://crrev.com/7b5ce1f5f57a8a402f5586e8275f4469cc24e184/chrome/browser/ui/webui/print_preview/print_preview_handler.cc

Status: Fixed (was: Started)

Sign in to add a comment